Ver código fonte

{bsp][stm32]stm32f107 更新到最新模板

whj 6 anos atrás
pai
commit
994c261b77

+ 3 - 3
bsp/stm32/stm32f107-uc-eval/Kconfig

@@ -1,16 +1,16 @@
 mainmenu "RT-Thread Configuration"
 mainmenu "RT-Thread Configuration"
 
 
-config $BSP_DIR
+config BSP_DIR
     string
     string
     option env="BSP_ROOT"
     option env="BSP_ROOT"
     default "."
     default "."
 
 
-config $RTT_DIR
+config RTT_DIR
     string
     string
     option env="RTT_ROOT"
     option env="RTT_ROOT"
     default "../../.."
     default "../../.."
 
 
-config $PKGS_DIR
+config PKGS_DIR
     string
     string
     option env="PKGS_ROOT"
     option env="PKGS_ROOT"
     default "packages"
     default "packages"

+ 1 - 1
bsp/stm32/stm32f107-uc-eval/SConstruct

@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
 if rtconfig.PLATFORM == 'iar':
 if rtconfig.PLATFORM == 'iar':
     env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
     env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
     env.Replace(ARFLAGS = [''])
     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('RTT_ROOT')
 Export('rtconfig')
 Export('rtconfig')

+ 1 - 1
bsp/stm32/stm32f107-uc-eval/applications/main.c

@@ -12,7 +12,7 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
 #include <board.h>
 #include <board.h>
-#include "drv_gpio.h"
+
 /* defined the LED1 pin: PD13 */
 /* defined the LED1 pin: PD13 */
 #define LED1_PIN    GET_PIN(D, 13)
 #define LED1_PIN    GET_PIN(D, 13)
 
 

+ 1 - 1
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 at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
 
 
 place in ROM_region   { readonly };
 place in ROM_region   { readonly };
-place in RAM_region   { readwrite, last block CSTACK};
+place in RAM_region   { readwrite, last block CSTACK};