diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Kconfig | 8 | ||||
| -rw-r--r-- | src/cpu.c | 14 |
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 */ |
