summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorbernard <[email protected]>2014-07-21 06:23:50 +0800
committerbernard <[email protected]>2014-07-21 06:23:50 +0800
commit9572d3e46ab081bf1a3440c9cc06d48a76daeb51 (patch)
tree27e1627c12763d8d2539530dd3ba0af252fb46bd /bsp
parent02faf9edb8162a4e8f60cb818ece20c7357a3abf (diff)
[bsp] Fix STM32F10x compiling warning.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32f10x/drivers/board.c1
-rw-r--r--bsp/stm32f10x/drivers/board.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/bsp/stm32f10x/drivers/board.c b/bsp/stm32f10x/drivers/board.c
index a78428e711..d8374068c8 100644
--- a/bsp/stm32f10x/drivers/board.c
+++ b/bsp/stm32f10x/drivers/board.c
@@ -19,6 +19,7 @@
#include "stm32f10x.h"
#include "stm32f10x_fsmc.h"
#include "board.h"
+#include "usart.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
diff --git a/bsp/stm32f10x/drivers/board.h b/bsp/stm32f10x/drivers/board.h
index dc84db9c69..0fa68651b8 100644
--- a/bsp/stm32f10x/drivers/board.h
+++ b/bsp/stm32f10x/drivers/board.h
@@ -37,11 +37,13 @@
#define STM32_SRAM_SIZE 64
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
+// <<< Use Configuration Wizard in Context Menu >>>
+
/* USART driver select. */
#define RT_USING_UART1
#define RT_USING_UART2
#define RT_USING_UART3
-#endif /* __BOARD_H__ */
+void rt_hw_board_init(void);
-// <<< Use Configuration Wizard in Context Menu >>>
+#endif /* __BOARD_H__ */