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 <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
268fa152f2
commit
9670dc582d
|
@ -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__)) */
|
||||
|
||||
|
|
Loading…
Reference in New Issue