diff options
| author | Bernard Xiong <[email protected]> | 2015-03-04 10:32:01 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-03-04 10:32:01 +0800 |
| commit | 677d5323e8d9fa354307baea78213fcbd9aaa345 (patch) | |
| tree | 70afac2eae680b877253e646af95df190f9be058 | |
| parent | 5620a10628ff49bebf500f720572c3af1abf8870 (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 } |
