finsh init change to application thread

This commit is contained in:
xieyangrun 2017-08-31 10:50:23 +08:00
parent 01c43e8bed
commit b9ec9d64b8
2 changed files with 45 additions and 44 deletions

View File

@ -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();

View File

@ -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();