From c1ccceb0f9faa08c76a3f3276fdca0cd806a2ba3 Mon Sep 17 00:00:00 2001 From: armink Date: Fri, 17 May 2019 18:41:27 +0800 Subject: Update the bsp to master v4.0.1 version. --- src/Kconfig | 8 ++++++++ src/cpu.c | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/cpu.c (limited to 'src') 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 +#include + +/* nothing on non-smp version */ -- cgit v1.3.1