[M487/NUC472/NANO130] fix TRUE/FALSE redefinition

pull/5510/head
cyliangtw 2017-11-08 20:38:45 +08:00 committed by Martin Kojtal
parent 41eb565d9c
commit 288094568c
3 changed files with 12 additions and 0 deletions

View File

@ -35908,8 +35908,12 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#define NULL (0) ///< NULL pointer #define NULL (0) ///< NULL pointer
#endif #endif
#ifndef TRUE
#define TRUE (1UL) ///< Boolean true, define to use in API parameters or return value #define TRUE (1UL) ///< Boolean true, define to use in API parameters or return value
#endif
#ifndef FALSE
#define FALSE (0UL) ///< Boolean false, define to use in API parameters or return value #define FALSE (0UL) ///< Boolean false, define to use in API parameters or return value
#endif
#define ENABLE (1UL) ///< Enable, define to use in API parameters #define ENABLE (1UL) ///< Enable, define to use in API parameters
#define DISABLE (0UL) ///< Disable, define to use in API parameters #define DISABLE (0UL) ///< Disable, define to use in API parameters

View File

@ -11831,8 +11831,12 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#define NULL (0) ///< NULL pointer #define NULL (0) ///< NULL pointer
#endif #endif
#ifndef TRUE
#define TRUE (1) ///< Boolean true, define to use in API parameters or return value #define TRUE (1) ///< Boolean true, define to use in API parameters or return value
#endif
#ifndef FALSE
#define FALSE (0) ///< Boolean false, define to use in API parameters or return value #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 ENABLE (1) ///< Enable, define to use in API parameters
#define DISABLE (0) ///< Disable, define to use in API parameters #define DISABLE (0) ///< Disable, define to use in API parameters

View File

@ -32511,8 +32511,12 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#define NULL (0) ///< NULL pointer #define NULL (0) ///< NULL pointer
#endif #endif
#ifndef TRUE
#define TRUE (1) ///< Boolean true, define to use in API parameters or return value #define TRUE (1) ///< Boolean true, define to use in API parameters or return value
#endif
#ifndef FALSE
#define FALSE (0) ///< Boolean false, define to use in API parameters or return value #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 ENABLE (1) ///< Enable, define to use in API parameters
#define DISABLE (0) ///< Disable, define to use in API parameters #define DISABLE (0) ///< Disable, define to use in API parameters