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_device_t dev;
|
||||||
|
|
||||||
rt_kprintf("SYSTEM running at %uhz\n", SystemCoreClock);
|
rt_kprintf("SYSTEM running at %uhz\n", SystemCoreClock);
|
||||||
|
|
||||||
|
#ifdef RT_USING_FINSH
|
||||||
|
/* init finsh */
|
||||||
|
finsh_system_init();
|
||||||
|
finsh_set_device("uart1");
|
||||||
|
#endif
|
||||||
|
|
||||||
LED_Init();
|
LED_Init();
|
||||||
configure_extint_channel();
|
configure_extint_channel();
|
||||||
configure_extint_callbacks();
|
configure_extint_callbacks();
|
||||||
|
|
|
@ -94,12 +94,6 @@ void rtthread_startup(void)
|
||||||
/* init application */
|
/* init application */
|
||||||
rt_application_init();
|
rt_application_init();
|
||||||
|
|
||||||
#ifdef RT_USING_FINSH
|
|
||||||
/* init finsh */
|
|
||||||
finsh_system_init();
|
|
||||||
finsh_set_device("uart1");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* init timer thread */
|
/* init timer thread */
|
||||||
rt_system_timer_thread_init();
|
rt_system_timer_thread_init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue