summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2019-03-26 01:03:39 +0000
committerBernardXiong <[email protected]>2019-03-26 01:03:39 +0000
commit1487a4f732d9fa5382d979a5b08f981d93a58aee (patch)
tree9de949b640541a777f3b22211dedd28b618a966f /include/rtdef.h
parentb1a98ebe4621d6217da373078c34a4790fabe1c9 (diff)
[Kernel] Support ARCH data types definitions
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index bb11bf88ff..9af4320112 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -58,6 +58,7 @@ extern "C" {
(RT_SUBVERSION * 100) + RT_REVISION)
/* RT-Thread basic data type definitions */
+#ifndef RT_USING_ARCH_DATA_TYPE
typedef signed char rt_int8_t; /**< 8bit integer type */
typedef signed short rt_int16_t; /**< 16bit integer type */
typedef signed int rt_int32_t; /**< 32bit integer type */
@@ -72,6 +73,7 @@ typedef unsigned long rt_uint64_t; /**< 64bit unsigned inte
typedef signed long long rt_int64_t; /**< 64bit integer type */
typedef unsigned long long rt_uint64_t; /**< 64bit unsigned integer type */
#endif
+#endif
typedef int rt_bool_t; /**< boolean type */
typedef long rt_base_t; /**< Nbit CPU related date type */