bsp:ls2k:make set console device more flexible

This commit is contained in:
michael 2021-01-30 19:47:13 +08:00
parent 03ebd19a74
commit 752238dbe8
2 changed files with 5 additions and 8 deletions

View File

@ -90,7 +90,7 @@ void rt_hw_board_init(void)
/* init hardware UART device */ /* init hardware UART device */
rt_hw_uart_init(); rt_hw_uart_init();
/* set console device */ /* set console device */
rt_console_set_device("uart0"); rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif #endif
#ifdef RT_USING_HEAP #ifdef RT_USING_HEAP

View File

@ -37,7 +37,7 @@
#define RT_USING_DEVICE #define RT_USING_DEVICE
#define RT_USING_CONSOLE #define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 256 #define RT_CONSOLEBUF_SIZE 256
#define RT_CONSOLE_DEVICE_NAME "uart" #define RT_CONSOLE_DEVICE_NAME "uart0"
#define RT_VER_NUM 0x40003 #define RT_VER_NUM 0x40003
#define ARCH_CPU_64BIT #define ARCH_CPU_64BIT
#define ARCH_MIPS64 #define ARCH_MIPS64
@ -82,6 +82,8 @@
#define RT_DFS_ELM_WORD_ACCESS #define RT_DFS_ELM_WORD_ACCESS
#define RT_DFS_ELM_USE_LFN_3 #define RT_DFS_ELM_USE_LFN_3
#define RT_DFS_ELM_USE_LFN 3 #define RT_DFS_ELM_USE_LFN 3
#define RT_DFS_ELM_LFN_UNICODE_0
#define RT_DFS_ELM_LFN_UNICODE 0
#define RT_DFS_ELM_MAX_LFN 255 #define RT_DFS_ELM_MAX_LFN 255
#define RT_DFS_ELM_DRIVES 9 #define RT_DFS_ELM_DRIVES 9
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
@ -114,6 +116,7 @@
/* Socket abstraction layer */ /* Socket abstraction layer */
#define RT_USING_SAL #define RT_USING_SAL
#define SAL_INTERNET_CHECK
/* protocol stack implement */ /* protocol stack implement */
@ -220,9 +223,6 @@
/* system packages */ /* system packages */
/* Micrium: Micrium software products porting for RT-Thread */
/* peripheral libraries and drivers */ /* peripheral libraries and drivers */
@ -231,9 +231,6 @@
/* samples: kernel and components samples */ /* samples: kernel and components samples */
/* games: games run on RT-Thread console */
#define SOC_LS2K1000 #define SOC_LS2K1000
#endif #endif