diff options
| author | Bernard Xiong <[email protected]> | 2021-03-20 16:16:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-20 16:16:21 +0800 |
| commit | 2836954dce165646486cec5b09242a798079b662 (patch) | |
| tree | c684a326f3328382056ed05f7d91e711a9ae1e0d | |
| parent | 70e566e8333846a2788724fa8554c17d0f530eb3 (diff) | |
| parent | 2517907b48fb7a6e837a9812405eed79da8f2f2f (diff) | |
Merge pull request #4488 from CraztTnspt/master
[toolchain] TASKING toolchain attributes update.
| -rw-r--r-- | include/rtdef.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index f5a09f815b..38686492b1 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -193,17 +193,15 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define rt_inline static inline #define RTT_API #elif defined (__TASKING__) - #include <stdarg.h> - #define RT_SECTION(x) - #define RT_UNUSED - #define RT_USED + #define RT_SECTION(x) __attribute__((section(x))) + #define RT_UNUSED __attribute__((unused)) + #define RT_USED __attribute__((used, protect)) #define PRAGMA(x) _Pragma(#x) - #define ALIGN(n) - #define RT_WEAK + #define ALIGN(n) __attribute__((aligned(n))) + #define RT_WEAK __attribute__((weak)) #define rt_inline static inline #define RTT_API - #else #error not supported tool chain #endif |
