diff options
| author | 陈豪 <[email protected]> | 2014-08-06 22:55:49 +0800 |
|---|---|---|
| committer | 陈豪 <[email protected]> | 2014-08-06 22:55:49 +0800 |
| commit | 5fc32bf12ef4356ecbd46cfa21079cddb522b5c7 (patch) | |
| tree | 8f77e59c1bcec59c3c5efd0fe022f3dc0a0c901e /include | |
| parent | 0c8335d5ab046ce9fe36c4e01d5d40e4ba152b49 (diff) | |
| parent | a8fadf15b1828569e7684049d983cc6cb7fda2c9 (diff) | |
Merge pull request #1 from RT-Thread/master
sync
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index e6b302d298..01ccc3fc44 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -96,6 +96,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define UNUSED __attribute__((unused)) #define USED __attribute__((used)) #define ALIGN(n) __attribute__((aligned(n))) + #define WEAK __weak #define rt_inline static __inline /* module compiling */ #ifdef RT_USING_MODULE @@ -111,6 +112,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define USED #define PRAGMA(x) _Pragma(#x) #define ALIGN(n) PRAGMA(data_alignment=n) + #define WEAK __weak #define rt_inline static inline #define RTT_API @@ -130,6 +132,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define UNUSED __attribute__((unused)) #define USED __attribute__((used)) #define ALIGN(n) __attribute__((aligned(n))) + #define WEAK __attribute__((weak)) #define rt_inline static __inline #define RTT_API #elif defined (__ADSPBLACKFIN__) /* for VisualDSP++ Compiler */ @@ -138,6 +141,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define UNUSED __attribute__((unused)) #define USED __attribute__((used)) #define ALIGN(n) __attribute__((aligned(n))) + #define WEAK __attribute__((weak)) #define rt_inline static inline #define RTT_API #elif defined (_MSC_VER) @@ -146,6 +150,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define UNUSED #define USED #define ALIGN(n) __declspec(align(n)) + #define WEAK #define rt_inline static __inline #define RTT_API #elif defined (__TI_COMPILER_VERSION__) @@ -158,6 +163,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define USED #define PRAGMA(x) _Pragma(#x) #define ALIGN(n) + #define WEAK #define rt_inline static inline #define RTT_API #else @@ -793,6 +799,7 @@ enum rt_device_class_type #define RT_DEVICE_CTRL_BLK_GETGEOME 0x10 /**< get geometry information */ #define RT_DEVICE_CTRL_BLK_SYNC 0x11 /**< flush data to block device */ #define RT_DEVICE_CTRL_BLK_ERASE 0x12 /**< erase block on block device */ +#define RT_DEVICE_CTRL_BLK_AUTOREFRESH 0x13 /**< block device : enter/exit auto refresh mode */ #define RT_DEVICE_CTRL_NETIF_GETMAC 0x10 /**< get mac address */ #define RT_DEVICE_CTRL_MTD_FORMAT 0x10 /**< format a MTD device */ #define RT_DEVICE_CTRL_RTC_GET_TIME 0x10 /**< get time */ |
