summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-02-18 15:03:21 +0000
committer[email protected] <[email protected]>2012-02-18 15:03:21 +0000
commit5d2d94eb3d78cd40a6037f50c8d3c75b2639bd05 (patch)
treece3ba86a9ea071071b9c7e0cd705cb4cdf673c86 /include/rtdef.h
parentec1c89d5ec92db83ac38fabf20c6bc5f3d2475e3 (diff)
add RTTHREAD_VERSION definition.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1965 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 0b1b2e4640..092a9a2c63 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -35,6 +35,10 @@ extern "C" {
#define RT_SUBVERSION 1L /**< minor version number */
#define RT_REVISION 0L /**< revise version number */
+/* RT-Thread version */
+#define RTTHREAD_VERSION ((RT_VERSION * 10000) + \
+ (RT_SUBVERSION * 100) + RT_REVISION)
+
/* RT-Thread basic data type definitions */
typedef signed char rt_int8_t; /**< 8bit integer type */
typedef signed short rt_int16_t; /**< 16bit integer type */
@@ -620,7 +624,6 @@ enum rt_device_class_type
#define RT_DEVICE_CTRL_MTD_FORMAT 0x10 /**< format a MTD device */
#define RT_DEVICE_CTRL_RTC_GET_TIME 0x10 /**< get time */
#define RT_DEVICE_CTRL_RTC_SET_TIME 0x11 /**< set time */
-#define RT_DEVICE_CTRL_BLK_ERASE 0x12 /**< erase */
typedef struct rt_device *rt_device_t;
/**