From 24157d68e4fa7bd3a1c9ba31abe4da276e7a7326 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 4 May 2018 12:08:34 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11997 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/nil/include/ch.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'os/nil/include') diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h index dc89bd597..3aa85af6c 100644 --- a/os/nil/include/ch.h +++ b/os/nil/include/ch.h @@ -73,6 +73,26 @@ #define CH_KERNEL_PATCH 0 /** @} */ +/** + * @name Constants for configuration options + */ +/** + * @brief Generic 'false' preprocessor boolean constant. + * @note It is meant to be used in configuration files as switch. + */ +#if !defined(FALSE) || defined(__DOXYGEN__) +#define FALSE 0 +#endif + +/** + * @brief Generic 'true' preprocessor boolean constant. + * @note It is meant to be used in configuration files as switch. + */ +#if !defined(TRUE) || defined(__DOXYGEN__) +#define TRUE 1 +#endif +/** @} */ + /** * @name Wakeup messages * @{ -- cgit v1.2.3