diff --git a/readme.txt b/readme.txt index 40c451676..634ef161c 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,9 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, ***************************************************************************** *** 1.0.0 RC1 *** +- NEW: Added new macros CH_KERNEL_VERSION set to "1.0.0 RC1", CH_KERNEL_MAJOR + set to 1, CH_KERNEL_MINOR set to 0, CH_KERNEL_PATCH set to 0. + The macros will be updated to reflect the actual kernel version number. - FIX: Disabled the configuration option CH_USE_MESSAGES_PRIORITY from the MSP430 demo, the default for this option should be off. - FIX: Fixed a bug that prevented the THREAD_EXT_FIELDS to be compiled into diff --git a/src/include/ch.h b/src/include/ch.h index aa6c04cc0..0c3eb2a64 100644 --- a/src/include/ch.h +++ b/src/include/ch.h @@ -25,8 +25,31 @@ #ifndef _CH_H_ #define _CH_H_ +/** + * ChibiOS/RT identification macro. + */ #define _CHIBIOS_RT_ +/** + * Kernel version string. + */ +#define CH_KERNEL_VERSION "1.0.0rc1" + +/** + * Kernel version major number. + */ +#define CH_KERNEL_MAJOR 1 + +/** + * Kernel version minor number. + */ +#define CH_KERNEL_MINOR 0 + +/** + * Kernel version patch number. + */ +#define CH_KERNEL_PATCH 0 + #include #include #include "lists.h"