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};