Skip to content

Commit 6f09461

Browse files
committed
[bsp] update all bsp rtconfig.h
1 parent 1bedc4a commit 6f09461

File tree

9 files changed

+1453
-336
lines changed

9 files changed

+1453
-336
lines changed

bsp/acm32f0x0-nucleo/.config

Lines changed: 633 additions & 0 deletions
Large diffs are not rendered by default.

bsp/acm32f0x0-nucleo/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ source "$PKGS_DIR/Kconfig"
2121
config SOC_SERIES_ACM32F0
2222
bool
2323
select ARCH_ARM_CORTEX_M0
24+
select RT_USING_USER_MAIN
2425
default y
2526

2627
source "$BSP_DIR/drivers/Kconfig"

bsp/acm32f0x0-nucleo/rtconfig.h

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
#define RT_USING_MEMPOOL
3838
#define RT_USING_SMALL_MEM
39+
#define RT_USING_SMALL_MEM_AS_HEAP
3940
#define RT_USING_HEAP
4041

4142
/* Kernel Device Object */
@@ -45,7 +46,7 @@
4546
#define RT_USING_CONSOLE
4647
#define RT_CONSOLEBUF_SIZE 128
4748
#define RT_CONSOLE_DEVICE_NAME "uart1"
48-
#define RT_VER_NUM 0x40004
49+
#define RT_VER_NUM 0x40100
4950
#define ARCH_ARM
5051
#define ARCH_ARM_CORTEX_M
5152
#define ARCH_ARM_CORTEX_M0
@@ -54,24 +55,26 @@
5455

5556
#define RT_USING_COMPONENTS_INIT
5657
#define RT_USING_USER_MAIN
57-
#define RT_MAIN_THREAD_STACK_SIZE 2048
58+
#define RT_MAIN_THREAD_STACK_SIZE 2048
59+
#define RT_MAIN_THREAD_PRIORITY 10
5860

5961
/* C++ features */
6062

6163

6264
/* Command shell */
6365

6466
#define RT_USING_FINSH
67+
#define RT_USING_MSH
68+
#define FINSH_USING_MSH
6569
#define FINSH_THREAD_NAME "tshell"
70+
#define FINSH_THREAD_PRIORITY 20
71+
#define FINSH_THREAD_STACK_SIZE 4096
6672
#define FINSH_USING_HISTORY
6773
#define FINSH_HISTORY_LINES 5
6874
#define FINSH_USING_SYMTAB
69-
#define FINSH_USING_DESCRIPTION
70-
#define FINSH_THREAD_PRIORITY 20
71-
#define FINSH_THREAD_STACK_SIZE 4096
7275
#define FINSH_CMD_SIZE 80
73-
#define FINSH_USING_MSH
74-
#define FINSH_USING_MSH_DEFAULT
76+
#define MSH_USING_BUILT_IN_COMMANDS
77+
#define FINSH_USING_DESCRIPTION
7578
#define FINSH_ARG_MAX 10
7679

7780
/* Device virtual file system */
@@ -96,6 +99,7 @@
9699
/* POSIX layer and C standard library */
97100

98101
#define RT_USING_LIBC
102+
#define RT_LIBC_USING_TIME
99103
#define RT_LIBC_DEFAULT_TIMEZONE 8
100104

101105
/* Network */
@@ -152,14 +156,23 @@
152156
/* system packages */
153157

154158

159+
/* Micrium: Micrium software products porting for RT-Thread */
160+
161+
155162
/* peripheral libraries and drivers */
156163

157164

165+
/* AI packages */
166+
167+
158168
/* miscellaneous packages */
159169

160170

161171
/* samples: kernel and components samples */
162172

173+
174+
/* games: games run on RT-Thread console */
175+
163176
#define SOC_SERIES_ACM32F0
164177

165178
/* Hardware Drivers Config */

0 commit comments

Comments
 (0)