From 698eb25d0632a0261dac7b0b3e3e9ae0f787768e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 29 Dec 2008 11:06:49 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@556 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- readme.txt | 3 +++ src/include/ch.h | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) 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"