Skip to content

Commit ef8b984

Browse files
authored
Merge pull request #4282 from Michael0066/ls2k-dev
bsp:ls2k:make set console device more flexible
2 parents cf497f0 + 752238d commit ef8b984

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

bsp/ls2kdev/drivers/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void rt_hw_board_init(void)
9090
/* init hardware UART device */
9191
rt_hw_uart_init();
9292
/* set console device */
93-
rt_console_set_device("uart0");
93+
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
9494
#endif
9595

9696
#ifdef RT_USING_HEAP

bsp/ls2kdev/rtconfig.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define RT_USING_DEVICE
3838
#define RT_USING_CONSOLE
3939
#define RT_CONSOLEBUF_SIZE 256
40-
#define RT_CONSOLE_DEVICE_NAME "uart"
40+
#define RT_CONSOLE_DEVICE_NAME "uart0"
4141
#define RT_VER_NUM 0x40003
4242
#define ARCH_CPU_64BIT
4343
#define ARCH_MIPS64
@@ -82,6 +82,8 @@
8282
#define RT_DFS_ELM_WORD_ACCESS
8383
#define RT_DFS_ELM_USE_LFN_3
8484
#define RT_DFS_ELM_USE_LFN 3
85+
#define RT_DFS_ELM_LFN_UNICODE_0
86+
#define RT_DFS_ELM_LFN_UNICODE 0
8587
#define RT_DFS_ELM_MAX_LFN 255
8688
#define RT_DFS_ELM_DRIVES 9
8789
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
@@ -114,6 +116,7 @@
114116
/* Socket abstraction layer */
115117

116118
#define RT_USING_SAL
119+
#define SAL_INTERNET_CHECK
117120

118121
/* protocol stack implement */
119122

@@ -220,9 +223,6 @@
220223
/* system packages */
221224

222225

223-
/* Micrium: Micrium software products porting for RT-Thread */
224-
225-
226226
/* peripheral libraries and drivers */
227227

228228

@@ -231,9 +231,6 @@
231231

232232
/* samples: kernel and components samples */
233233

234-
235-
/* games: games run on RT-Thread console */
236-
237234
#define SOC_LS2K1000
238235

239236
#endif

0 commit comments

Comments
 (0)