mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-31 03:38:02 +08:00
Update application.c
This commit is contained in:
@@ -14,7 +14,11 @@
|
|||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#include <board.h>
|
#ifdef RT_USING_FINSH
|
||||||
|
#include <shell.h>
|
||||||
|
#include <finsh.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_COMPONENTS_INIT
|
#ifdef RT_USING_COMPONENTS_INIT
|
||||||
#include <components.h>
|
#include <components.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -25,12 +29,8 @@ void rt_init_thread_entry(void *parameter)
|
|||||||
/* Initialization RT-Thread Components */
|
/* Initialization RT-Thread Components */
|
||||||
#ifdef RT_USING_COMPONENTS_INIT
|
#ifdef RT_USING_COMPONENTS_INIT
|
||||||
rt_components_init();
|
rt_components_init();
|
||||||
#endif
|
#elif defined(RT_USING_FINSH)
|
||||||
|
|
||||||
#ifdef RT_USING_FINSH
|
|
||||||
/* initialize finsh */
|
|
||||||
finsh_system_init();
|
finsh_system_init();
|
||||||
finsh_set_device(FINSH_DEVICE_NAME);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user