summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarmink <[email protected]>2019-05-17 18:41:27 +0800
committerarmink <[email protected]>2019-05-20 11:23:56 +0800
commitc1ccceb0f9faa08c76a3f3276fdca0cd806a2ba3 (patch)
tree0e5020b17e06767686efa9c5e5e69b92ffc7b89e /src
parentbf4a51b599b56cddb93f7f2ad576f6f0d022a64e (diff)
Update the bsp to master v4.0.1 version.
Diffstat (limited to 'src')
-rw-r--r--src/Kconfig8
-rw-r--r--src/cpu.c14
2 files changed, 22 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 8f8ee0f65a..2ad1518054 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -8,6 +8,14 @@ config RT_NAME_MAX
Each kernel object, such as thread, timer, semaphore etc, has a name,
the RT_NAME_MAX is the maximal size of this object name.
+config RT_USING_ARCH_DATA_TYPE
+ bool "Use the data types defined in ARCH_CPU"
+ default n
+ help
+ For the data type like, `rt_uint8/int8_t, rt_uint16/int16_t, rt_uint32/int32_t`,
+ BSP can define these basic data types in ARCH_CPU level.
+
+ Please re-define these data types in rtconfig_project.h file.
config RT_ALIGN_SIZE
int "Alignment size for CPU architecture data access"
default 4
diff --git a/src/cpu.c b/src/cpu.c
new file mode 100644
index 0000000000..5cba05fe70
--- /dev/null
+++ b/src/cpu.c
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2018-10-30 Bernard The first version
+ */
+
+#include <rtthread.h>
+#include <rthw.h>
+
+/* nothing on non-smp version */