diff --git a/targets/TARGET_NUVOTON/TARGET_M480/device/M480.h b/targets/TARGET_NUVOTON/TARGET_M480/device/M480.h index 070104eb74d..d3e5669df71 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/device/M480.h +++ b/targets/TARGET_NUVOTON/TARGET_M480/device/M480.h @@ -35908,8 +35908,12 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile #define NULL (0) ///< NULL pointer #endif +#ifndef TRUE #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 +#endif #define ENABLE (1UL) ///< Enable, define to use in API parameters #define DISABLE (0UL) ///< Disable, define to use in API parameters diff --git a/targets/TARGET_NUVOTON/TARGET_NANO100/device/Nano100Series.h b/targets/TARGET_NUVOTON/TARGET_NANO100/device/Nano100Series.h index c6655323a64..6a6520e57cd 100644 --- a/targets/TARGET_NUVOTON/TARGET_NANO100/device/Nano100Series.h +++ b/targets/TARGET_NUVOTON/TARGET_NANO100/device/Nano100Series.h @@ -11831,8 +11831,12 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile #define NULL (0) ///< NULL pointer #endif +#ifndef TRUE #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 +#endif #define ENABLE (1) ///< Enable, define to use in API parameters #define DISABLE (0) ///< Disable, define to use in API parameters diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h b/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h index 664551ec71f..00af9638dea 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h @@ -32511,8 +32511,12 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile #define NULL (0) ///< NULL pointer #endif +#ifndef TRUE #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 +#endif #define ENABLE (1) ///< Enable, define to use in API parameters #define DISABLE (0) ///< Disable, define to use in API parameters