Skip to content

Commit 9f55c88

Browse files
committed
刷新龙芯工程
1 parent 5c058b6 commit 9f55c88

File tree

13 files changed

+994
-153
lines changed

13 files changed

+994
-153
lines changed

bsp/ls1bdev/.config

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

bsp/ls1bdev/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ config PKGS_DIR
1818
source "$RTT_DIR/Kconfig"
1919
source "$PKGS_DIR/Kconfig"
2020

21+
config SOC_LS
22+
bool
23+
default y
24+
2125
config SOC_LS1B
2226
bool
2327
select RT_USING_COMPONENTS_INIT

bsp/ls1bdev/rtconfig.h

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
#define RT_USING_HOOK
1616
#define RT_USING_IDLE_HOOK
1717
#define RT_IDLE_HOOK_LIST_SIZE 4
18-
#define IDLE_THREAD_STACK_SIZE 1024
18+
#define IDLE_THREAD_STACK_SIZE 256
19+
#define RT_USING_TIMER_SOFT
20+
#define RT_TIMER_THREAD_PRIO 4
21+
#define RT_TIMER_THREAD_STACK_SIZE 512
22+
23+
/* kservice optimization */
24+
1925
#define RT_DEBUG
2026

2127
/* Inter-Thread communication */
@@ -38,7 +44,7 @@
3844
#define RT_USING_CONSOLE
3945
#define RT_CONSOLEBUF_SIZE 128
4046
#define RT_CONSOLE_DEVICE_NAME "uart5"
41-
#define RT_VER_NUM 0x40003
47+
#define RT_VER_NUM 0x40004
4248

4349
/* RT-Thread Components */
4450

@@ -53,24 +59,25 @@
5359
/* Command shell */
5460

5561
#define RT_USING_FINSH
62+
#define RT_USING_MSH
63+
#define FINSH_USING_MSH
5664
#define FINSH_THREAD_NAME "tshell"
65+
#define FINSH_THREAD_PRIORITY 20
66+
#define FINSH_THREAD_STACK_SIZE 4096
5767
#define FINSH_USING_HISTORY
5868
#define FINSH_HISTORY_LINES 5
5969
#define FINSH_USING_SYMTAB
60-
#define FINSH_USING_DESCRIPTION
61-
#define FINSH_THREAD_PRIORITY 20
62-
#define FINSH_THREAD_STACK_SIZE 4096
6370
#define FINSH_CMD_SIZE 80
64-
#define FINSH_USING_MSH
65-
#define FINSH_USING_MSH_DEFAULT
71+
#define MSH_USING_BUILT_IN_COMMANDS
72+
#define FINSH_USING_DESCRIPTION
6673
#define FINSH_ARG_MAX 10
6774

6875
/* Device virtual file system */
6976

7077
#define RT_USING_DFS
7178
#define DFS_USING_WORKDIR
72-
#define DFS_FILESYSTEMS_MAX 2
73-
#define DFS_FILESYSTEM_TYPES_MAX 2
79+
#define DFS_FILESYSTEMS_MAX 4
80+
#define DFS_FILESYSTEM_TYPES_MAX 4
7481
#define DFS_FD_MAX 16
7582
#define RT_USING_DFS_DEVFS
7683

@@ -79,6 +86,7 @@
7986
#define RT_USING_DEVICE_IPC
8087
#define RT_PIPE_BUFSZ 512
8188
#define RT_USING_SERIAL
89+
#define RT_USING_SERIAL_V1
8290
#define RT_SERIAL_USING_DMA
8391
#define RT_SERIAL_RB_BUFSZ 64
8492
#define RT_USING_PIN
@@ -90,6 +98,7 @@
9098

9199
#define RT_USING_LIBC
92100
#define RT_USING_POSIX
101+
#define RT_LIBC_DEFAULT_TIMEZONE 8
93102

94103
/* Network */
95104

@@ -111,6 +120,9 @@
111120
/* Utilities */
112121

113122

123+
/* RT-Thread Utestcases */
124+
125+
114126
/* RT-Thread online packages */
115127

116128
/* IoT - internet of things */
@@ -141,15 +153,26 @@
141153

142154
/* system packages */
143155

156+
/* acceleration: Assembly language or algorithmic acceleration packages */
157+
158+
159+
/* Micrium: Micrium software products porting for RT-Thread */
160+
144161

145162
/* peripheral libraries and drivers */
146163

147164

148-
/* miscellaneous packages */
165+
/* AI packages */
166+
149167

168+
/* miscellaneous packages */
150169

151170
/* samples: kernel and components samples */
152171

172+
173+
/* entertainment: terminal games and other interesting software packages */
174+
175+
#define SOC_LS
153176
#define SOC_LS1B
154177
#define RT_MEM_SIZE 256
155178
#define RT_OSC_CLK 25000000

0 commit comments

Comments
 (0)