diff --git a/include/rtdef.h b/include/rtdef.h index 0de2c22ec4..be702a0b26 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -44,6 +44,7 @@ * 2022-04-20 Meco Man change version number to v4.1.1 * 2022-04-21 THEWON add macro RT_VERSION_CHECK * 2022-06-29 Meco Man add RT_USING_LIBC and standard libc headers + * 2022-08-16 Meco Man change version number to v5.0.0 */ #ifndef __RT_DEF_H__ @@ -67,16 +68,16 @@ extern "C" { /**@{*/ /* RT-Thread version information */ -#define RT_VERSION 4 /**< major version number */ -#define RT_SUBVERSION 1 /**< minor version number */ -#define RT_REVISION 1 /**< revise version number */ +#define RT_VERSION 5 /**< major version number */ +#define RT_SUBVERSION 0 /**< minor version number */ +#define RT_REVISION 0 /**< revise version number */ + +/* e.g. #if (RTTHREAD_VERSION >= RT_VERSION_CHECK(4, 1, 0) */ +#define RT_VERSION_CHECK(major, minor, revise) ((major * 10000) + (minor * 100) + revise) /* RT-Thread version */ #define RTTHREAD_VERSION RT_VERSION_CHECK(RT_VERSION, RT_SUBVERSION, RT_REVISION) -/* e.g. #if (RTTHREAD_VERSION >= RT_VERSION_CHECK(4, 1, 0) */ -#define RT_VERSION_CHECK(major, minor, revise) ((major * 10000) + \ - (minor * 100) + revise) /* RT-Thread basic data type definitions */ #ifndef RT_USING_ARCH_DATA_TYPE diff --git a/src/Kconfig b/src/Kconfig index 06f001f433..4260585cd8 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -431,7 +431,7 @@ endmenu config RT_VER_NUM hex - default 0x40101 + default 0x50000 help RT-Thread version number