summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f446-st-nucleo
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/stm32/stm32f446-st-nucleo')
-rw-r--r--bsp/stm32/stm32f446-st-nucleo/SConstruct2
-rw-r--r--bsp/stm32/stm32f446-st-nucleo/applications/main.c4
-rw-r--r--bsp/stm32/stm32f446-st-nucleo/board/board.c4
-rw-r--r--bsp/stm32/stm32f446-st-nucleo/board/board.h5
4 files changed, 8 insertions, 7 deletions
diff --git a/bsp/stm32/stm32f446-st-nucleo/SConstruct b/bsp/stm32/stm32f446-st-nucleo/SConstruct
index c1609bf526..1101c708bd 100644
--- a/bsp/stm32/stm32f446-st-nucleo/SConstruct
+++ b/bsp/stm32/stm32f446-st-nucleo/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/stm32f446-st-nucleo/applications/main.c b/bsp/stm32/stm32f446-st-nucleo/applications/main.c
index 20fa5347c0..0f283769a9 100644
--- a/bsp/stm32/stm32f446-st-nucleo/applications/main.c
+++ b/bsp/stm32/stm32f446-st-nucleo/applications/main.c
@@ -5,13 +5,13 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-06 SummerGift change to new framework
+ * 2018-11-06 SummerGift first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
-#include "drv_gpio.h"
+
/* defined the LED2 pin: PB7 */
#define LED2_PIN GET_PIN(B, 7)
diff --git a/bsp/stm32/stm32f446-st-nucleo/board/board.c b/bsp/stm32/stm32f446-st-nucleo/board/board.c
index 6e54a24ff2..aba3df89e1 100644
--- a/bsp/stm32/stm32f446-st-nucleo/board/board.c
+++ b/bsp/stm32/stm32f446-st-nucleo/board/board.c
@@ -5,8 +5,8 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-06 SummerGift change to new framework
- * 2019-01-08 AndeyQi first version
+ * 2018-11-06 SummerGift first version
+ * 2019-01-08 AndeyQi add stm32f446-st-nucleo bsp
*/
#include "board.h"
diff --git a/bsp/stm32/stm32f446-st-nucleo/board/board.h b/bsp/stm32/stm32f446-st-nucleo/board/board.h
index bd9c494412..1800e44079 100644
--- a/bsp/stm32/stm32f446-st-nucleo/board/board.h
+++ b/bsp/stm32/stm32f446-st-nucleo/board/board.h
@@ -5,8 +5,8 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-06 SummerGift change to new framework
- * 2019-01-08 AndeyQi first version
+ * 2018-11-06 SummerGift first version
+ * 2019-01-08 AndeyQi add stm32f446-st-nucleo bsp
*/
#ifndef __BOARD_H__
@@ -15,6 +15,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
+#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)