| | |
| | | #define NULL (0) ///< NULL pointer |
| | | #endif |
| | | |
| | | #ifndef __ZEPHYR__ |
| | | #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 |
| | | */ |
| | | /* Define one bit mask */ |
| | | #define BIT0 (0x00000001UL) ///< Bit 0 mask of an 32 bit integer |
| | | #define BIT1 (0x00000002UL) ///< Bit 1 mask of an 32 bit integer |
| | |
| | | #define BIT30 (0x40000000UL) ///< Bit 30 mask of an 32 bit integer |
| | | #define BIT31 (0x80000000UL) ///< Bit 31 mask of an 32 bit integer |
| | | |
| | | #ifndef __ZEPHYR__ |
| | | #ifndef BIT |
| | | #define BIT(x) (0x1UL << (x)) |
| | | #endif |
| | | |