summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries/templates/stm32f0xx
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/stm32/libraries/templates/stm32f0xx')
-rw-r--r--bsp/stm32/libraries/templates/stm32f0xx/SConstruct2
-rw-r--r--bsp/stm32/libraries/templates/stm32f0xx/applications/main.c2
-rw-r--r--bsp/stm32/libraries/templates/stm32f0xx/board/board.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/bsp/stm32/libraries/templates/stm32f0xx/SConstruct b/bsp/stm32/libraries/templates/stm32f0xx/SConstruct
index 1676e02b25..c120f925df 100644
--- a/bsp/stm32/libraries/templates/stm32f0xx/SConstruct
+++ b/bsp/stm32/libraries/templates/stm32f0xx/SConstruct
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if rtconfig.PLATFORM == 'iar':
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = [''])
- env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'])
+ env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
Export('RTT_ROOT')
Export('rtconfig')
diff --git a/bsp/stm32/libraries/templates/stm32f0xx/applications/main.c b/bsp/stm32/libraries/templates/stm32f0xx/applications/main.c
index 5054699c0d..68a938bbeb 100644
--- a/bsp/stm32/libraries/templates/stm32f0xx/applications/main.c
+++ b/bsp/stm32/libraries/templates/stm32f0xx/applications/main.c
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
-#include "drv_gpio.h"
+
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
diff --git a/bsp/stm32/libraries/templates/stm32f0xx/board/board.h b/bsp/stm32/libraries/templates/stm32f0xx/board/board.h
index 58ece4a7c5..3be9e75cfc 100644
--- a/bsp/stm32/libraries/templates/stm32f0xx/board/board.h
+++ b/bsp/stm32/libraries/templates/stm32f0xx/board/board.h
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-5 SummerGift change to new framework
+ * 2018-11-5 SummerGift first version
*/
#ifndef __BOARD_H__
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f0xx.h>
#include "drv_common.h"
+#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {