mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-27 23:57:06 +08:00
finsh init change to application thread
This commit is contained in:
parent
01c43e8bed
commit
b9ec9d64b8
@ -83,6 +83,13 @@ void rt_init_thread_entry(void* parameter)
|
||||
rt_device_t dev;
|
||||
|
||||
rt_kprintf("SYSTEM running at %uhz\n", SystemCoreClock);
|
||||
|
||||
#ifdef RT_USING_FINSH
|
||||
/* init finsh */
|
||||
finsh_system_init();
|
||||
finsh_set_device("uart1");
|
||||
#endif
|
||||
|
||||
LED_Init();
|
||||
configure_extint_channel();
|
||||
configure_extint_callbacks();
|
||||
|
@ -94,12 +94,6 @@ void rtthread_startup(void)
|
||||
/* init application */
|
||||
rt_application_init();
|
||||
|
||||
#ifdef RT_USING_FINSH
|
||||
/* init finsh */
|
||||
finsh_system_init();
|
||||
finsh_set_device("uart1");
|
||||
#endif
|
||||
|
||||
/* init timer thread */
|
||||
rt_system_timer_thread_init();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user