From 994c261b77b9755ce0b7d186f260303737801f20 Mon Sep 17 00:00:00 2001 From: whj Date: Wed, 23 Jan 2019 13:01:45 +0800 Subject: [PATCH] =?UTF-8?q?{bsp][stm32]stm32f107=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=88=B0=E6=9C=80=E6=96=B0=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32f107-uc-eval/Kconfig | 6 +++--- bsp/stm32/stm32f107-uc-eval/SConstruct | 2 +- bsp/stm32/stm32f107-uc-eval/applications/main.c | 2 +- bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.icf | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bsp/stm32/stm32f107-uc-eval/Kconfig b/bsp/stm32/stm32f107-uc-eval/Kconfig index 2b30840a3e..7a400db91f 100644 --- a/bsp/stm32/stm32f107-uc-eval/Kconfig +++ b/bsp/stm32/stm32f107-uc-eval/Kconfig @@ -1,16 +1,16 @@ mainmenu "RT-Thread Configuration" -config $BSP_DIR +config BSP_DIR string option env="BSP_ROOT" default "." -config $RTT_DIR +config RTT_DIR string option env="RTT_ROOT" default "../../.." -config $PKGS_DIR +config PKGS_DIR string option env="PKGS_ROOT" default "packages" diff --git a/bsp/stm32/stm32f107-uc-eval/SConstruct b/bsp/stm32/stm32f107-uc-eval/SConstruct index c28354a99d..05326b2b75 100644 --- a/bsp/stm32/stm32f107-uc-eval/SConstruct +++ b/bsp/stm32/stm32f107-uc-eval/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/stm32f107-uc-eval/applications/main.c b/bsp/stm32/stm32f107-uc-eval/applications/main.c index f4970545b4..11587e49d0 100644 --- a/bsp/stm32/stm32f107-uc-eval/applications/main.c +++ b/bsp/stm32/stm32f107-uc-eval/applications/main.c @@ -12,7 +12,7 @@ #include #include #include -#include "drv_gpio.h" + /* defined the LED1 pin: PD13 */ #define LED1_PIN GET_PIN(D, 13) diff --git a/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.icf b/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.icf index 531327479c..6d172ee8d8 100644 --- a/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.icf @@ -25,4 +25,4 @@ do not initialize { section .noinit }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place in ROM_region { readonly }; -place in RAM_region { readwrite, last block CSTACK}; \ No newline at end of file +place in RAM_region { readwrite, last block CSTACK};