From 1692b39467adc608eb8286f12c668350e0e6f345 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 1 Nov 2017 13:01:51 +0800 Subject: [PATCH] [BSP] fix compiling issue --- bsp/stm32l072/board/board.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bsp/stm32l072/board/board.c b/bsp/stm32l072/board/board.c index 04e360dd05..37f96c586b 100644 --- a/bsp/stm32l072/board/board.c +++ b/bsp/stm32l072/board/board.c @@ -15,6 +15,9 @@ #include #include +#ifdef RT_USING_FINSH +#include +#endif #include "board.h" #include "usart.h" @@ -156,6 +159,6 @@ long cmd_reset(int argc, char** argv) HAL_NVIC_SystemReset(); return 0; } -FINSH_FUNCTION_EXPORT_ALIAS(cmd_reset, __cmd_reset, Reset Board.); +FINSH_FUNCTION_EXPORT_ALIAS(cmd_reset, __cmd_reset, Reset Board); /*@}*/