[bsp][tms320f28379d] Add support of Kconfig

This commit is contained in:
xuzhuoyi committed 2018-11-18 12:06:52 +08:00
1 parent 81f94fd271
commit 17301e463c
5 files changed
+362 -26

No files matched your search

File diff suppressed because it is too large. Load diff
+27
View File
@@ -0,0 +1,27 @@
mainmenu "RT-Thread Configuration"
config $BSP_DIR
string
option env="BSP_ROOT"
default "."
config $RTT_DIR
string
option env="RTT_ROOT"
default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread"
config $PKGS_DIR
string
option env="PKGS_ROOT"
default "packages"
config SOC_TMS320F28X
bool
select ARCH_C28X
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
-2
View File
@@ -59,8 +59,6 @@ void rtthread_startup(void)
/* init timer system */
rt_system_timer_init();
//rt_system_heap_init((void*)STM32_SRAM_BEGIN, (void*)STM32_SRAM_END);
/* init scheduler system */
rt_system_scheduler_init();
+29 -24
View File
@@ -2,19 +2,22 @@
#define RT_CONFIG_H__
/* Automatically generated file; DO NOT EDIT. */
/* RT-Thread Project Configuration */
/* RT-Thread Configuration */
#define SOC_TMS320F28X
/* RT-Thread Kernel */
#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_MAX 16
#define RT_THREAD_PRIORITY_8
#define RT_THREAD_PRIORITY_MAX 8
#define RT_TICK_PER_SECOND 100
//#define RT_USING_OVERFLOW_CHECK
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
#define RT_USING_IDLE_HOOK
#define RT_IDEL_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 1024
#define ARCH_CPU_STACK_GROWS_UPWARD
#define IDLE_THREAD_STACK_SIZE 256
#define RT_DEBUG
/* Inter-Thread communication */
@@ -34,9 +37,11 @@
/* Kernel Device Object */
#define RT_USING_DEVICE
//#define RT_USING_CONSOLE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart2"
#define RT_CONSOLE_DEVICE_NAME "uart"
#define ARCH_C28X
#define ARCH_CPU_STACK_GROWS_UPWARD
/* RT-Thread Components */
@@ -50,9 +55,12 @@
/* Device virtual file system */
/* elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS
#define DFS_USING_WORKDIR
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
/* Device Drivers */
@@ -61,6 +69,9 @@
#define RT_USING_SERIAL
#define RT_USING_PIN
/* Using WiFi */
/* Using USB */
@@ -71,29 +82,22 @@
/* Socket abstraction layer */
#define RT_USING_SAL
/* protocol stack implement */
/* light weight TCP/IP stack */
/* Static IPv4 Address */
/* Modbus master and slave stack */
/* AT commands */
/* VBUS(Virtual Software BUS) */
/* Utilities */
/* ARM CMSIS */
/* RT-Thread online packages */
/* IoT - internet of things */
@@ -107,6 +111,9 @@
/* Wiced WiFi */
/* IoT Cloud */
/* security packages */
@@ -130,12 +137,10 @@
/* sample package */
/* samples: kernel and components samples */
/* example package: hello */
#define SOC_STM32F4
#define RT_USING_UART1
#define RT_USING_UART2
#define RT_USING_UART3
#endif
+4
View File
@@ -86,6 +86,10 @@ config ARCH_RISCV
config ARCH_IA32
bool
config ARCH_C28X
bool
select ARCH_CPU_STACK_GROWS_UPWARD
config ARCH_HOST_SIMULATOR
bool