Merge pull request #14017 from OpenNuvoton/nuvoton_remove_enabledisable_macro

Nuvoton: Remove DISABLE/ENABLE macro definitions in BSP
pull/13959/head
Martin Kojtal 2020-12-09 11:56:29 +00:00 committed by GitHub
commit 336dd99091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 12 deletions

View File

@ -62,8 +62,9 @@ typedef volatile unsigned short vu16;
#define TRUE (1L)
#define FALSE (0L)
#define ENABLE 1
#define DISABLE 0
/* Not used on Mbed OS. Remove to get around name conflict */
//#define ENABLE 1
//#define DISABLE 0
/* Bit Mask Definitions */
#define BIT0 0x00000001UL

View File

@ -578,8 +578,9 @@ typedef volatile unsigned short vu16;
#define TRUE (1UL) ///< Boolean true, define to use in API parameters or return value
#define FALSE (0UL) ///< Boolean false, define to use in API parameters or return value
#define ENABLE (1UL) ///< Enable, define to use in API parameters
#define DISABLE (0UL) ///< Disable, define to use in API parameters
/* Not used on Mbed OS. Remove to get around name conflict */
//#define ENABLE (1UL) ///< Enable, define to use in API parameters
//#define DISABLE (0UL) ///< Disable, define to use in API parameters
/* Define one bit mask */
#define BIT0 (0x00000001UL) ///< Bit 0 mask of an 32 bit integer

View File

@ -518,8 +518,9 @@ typedef volatile unsigned short vu16;
#define TRUE (1L)
#define FALSE (0L)
#define ENABLE 1
#define DISABLE 0
/* Not used on Mbed OS. Remove to get around name conflict */
//#define ENABLE 1
//#define DISABLE 0
/* Bit Mask Definitions */
#define BIT0 0x00000001UL

View File

@ -608,8 +608,9 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#define TRUE (1UL) ///< Boolean true, define to use in API parameters or return value
#define FALSE (0UL) ///< Boolean false, define to use in API parameters or return value
#define ENABLE (1UL) ///< Enable, define to use in API parameters
#define DISABLE (0UL) ///< Disable, define to use in API parameters
/* Not used on Mbed OS. Remove to get around name conflict */
//#define ENABLE (1UL) ///< Enable, define to use in API parameters
//#define DISABLE (0UL) ///< Disable, define to use in API parameters
/* Define one bit mask */
#define BIT0 (0x00000001UL) ///< Bit 0 mask of an 32 bit integer

View File

@ -11838,8 +11838,9 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#define FALSE (0) ///< Boolean false, define to use in API parameters or return value
#endif
#define ENABLE (1) ///< Enable, define to use in API parameters
#define DISABLE (0) ///< Disable, define to use in API parameters
/* Not used on Mbed OS. Remove to get around name conflict */
//#define ENABLE (1) ///< Enable, define to use in API parameters
//#define DISABLE (0) ///< Disable, define to use in API parameters
/* Define one bit mask */
#define BIT0 (0x00000001) ///< Bit 0 mask of an 32 bit integer

View File

@ -32521,8 +32521,9 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#define FALSE (0) ///< Boolean false, define to use in API parameters or return value
#endif
#define ENABLE (1) ///< Enable, define to use in API parameters
#define DISABLE (0) ///< Disable, define to use in API parameters
/* Not used on Mbed OS. Remove to get around name conflict */
//#define ENABLE (1) ///< Enable, define to use in API parameters
//#define DISABLE (0) ///< Disable, define to use in API parameters
/* Define one bit mask */
#define BIT0 (0x00000001) ///< Bit 0 mask of an 32 bit integer