summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authortangweikang <[email protected]>2021-02-05 18:27:41 +0800
committertangweikang <[email protected]>2021-02-07 12:06:02 +0800
commitb1cdc3a2cbce88d9cd015eeaa5cfed09e75a1858 (patch)
tree8736ea7218092e5106e3759182753cf283b8bb1a /include/rtdef.h
parentd514fea54ac4e1ba22983ff76b626b2ef81f9fdc (diff)
[toolchain] Added support for the TASKING toolchain.
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index e4ddbd37d3..1226b43020 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -192,6 +192,18 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_WEAK
#define rt_inline static inline
#define RTT_API
+#elif defined (__TASKING__)
+
+ #include <stdarg.h>
+ #define SECTION(x)
+ #define RT_UNUSED
+ #define RT_USED
+ #define PRAGMA(x) _Pragma(#x)
+ #define ALIGN(n)
+ #define RT_WEAK
+ #define rt_inline static inline
+ #define RTT_API
+
#else
#error not supported tool chain
#endif