From 9670dc582d472fc888a8668887d86e46b4792eef Mon Sep 17 00:00:00 2001 From: Piotr Mienkowski Date: Fri, 3 Feb 2017 15:09:44 +0100 Subject: [PATCH] ext: Atmel ASF: remove unused and broken preprocesor macros Header files from Atmel ASF define several preprocesor macros which are unused and break compilation with some toolchains. This patch removes those macros. Currently only from same70q21.h header file which is used by SAM E70 Xplained target board. Jira: ZEP-976 Change-Id: I13adb92c73773815c6df221ef33b0f56795f1d8c Signed-off-by: Piotr Mienkowski --- .../atmel/asf/sam/include/same70/same70q21.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ext/hal/atmel/asf/sam/include/same70/same70q21.h b/ext/hal/atmel/asf/sam/include/same70/same70q21.h index 09a04e01b8c..9c39540a8d1 100644 --- a/ext/hal/atmel/asf/sam/include/same70/same70q21.h +++ b/ext/hal/atmel/asf/sam/include/same70/same70q21.h @@ -71,23 +71,6 @@ typedef volatile uint32_t WoReg8; /**< Write only 8-bit register (volati typedef volatile uint32_t RwReg; /**< Read-Write 32-bit register (volatile unsigned int) */ typedef volatile uint16_t RwReg16; /**< Read-Write 16-bit register (volatile unsigned int) */ typedef volatile uint8_t RwReg8; /**< Read-Write 8-bit register (volatile unsigned int) */ -#define CAST(type, value) ((type *)(value)) /**< Pointer Type Conversion Macro for C/C++ */ -#define REG_ACCESS(type, address) (*(type*)(address)) /**< C code: Register value */ - -#if !defined(_UL) -/* Macros that deal with adding suffixes to integer literal constants for C/C++ */ -#define _U(x) x ## U /**< C code: Unsigned integer literal constant value */ -#define _L(x) x ## L /**< C code: Long integer literal constant value */ -#define _UL(x) x ## UL /**< C code: Unsigned Long integer literal constant value */ -#endif /* !defined(UL) */ -#else /* Assembler */ -#define CAST(type, value) (value) /**< Pointer Type Conversion Macro for Assembler */ -#define REG_ACCESS(type, address) (address) /**< Assembly code: Register address */ -#if !defined(_UL) -#define _U(x) x /**< Assembler: Unsigned integer literal constant value */ -#define _L(x) x /**< Assembler: Long integer literal constant value */ -#define _UL(x) x /**< Assembler: Unsigned Long integer literal constant value */ -#endif /* !defined(UL) */ #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */