diff options
| author | Bernard Xiong <[email protected]> | 2015-03-04 10:32:48 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-03-04 10:32:48 +0800 |
| commit | 584efccad14686a5cc9629d26c1df6f1be173d5f (patch) | |
| tree | 13ba405a3d438689e7722ad3cd7fe52f84c31b2a | |
| parent | 7c4a416e3537587896d341eb22d8ea995ae375c3 (diff) | |
Update application.c
| -rw-r--r-- | bsp/lpc408x/applications/application.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bsp/lpc408x/applications/application.c b/bsp/lpc408x/applications/application.c index 91a59bcea1..b77caa220c 100644 --- a/bsp/lpc408x/applications/application.c +++ b/bsp/lpc408x/applications/application.c @@ -14,7 +14,11 @@ #include <rtthread.h> -#include <board.h> +#ifdef RT_USING_FINSH +#include <shell.h> +#include <finsh.h> +#endif + #ifdef RT_USING_COMPONENTS_INIT #include <components.h> #endif @@ -25,12 +29,8 @@ void rt_init_thread_entry(void *parameter) /* Initialization RT-Thread Components */ #ifdef RT_USING_COMPONENTS_INIT rt_components_init(); -#endif - -#ifdef RT_USING_FINSH - /* initialize finsh */ +#elif defined(RT_USING_FINSH) finsh_system_init(); - finsh_set_device(FINSH_DEVICE_NAME); #endif } |
