Browse Source

[bsp][stm32] fix some error

SummerGift 6 years ago
parent
commit
9cd881bf05

+ 2 - 2
bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c

@@ -10,7 +10,7 @@
 
 #include <rtthread.h>
 
-#ifdef RT_USING_DFS
+#ifdef BSP_USING_SDCARD
 
 #include <dfs_elm.h>
 #include <dfs_fs.h>
@@ -61,5 +61,5 @@ int stm32_sdcard_mount(void)
 }
 INIT_APP_EXPORT(stm32_sdcard_mount);
 
-#endif
+#endif  /* BSP_USING_SDCARD */
 

+ 1 - 1
bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.icf

@@ -30,4 +30,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
 
 place in ROM_region   { readonly };
 place in RAM1_region  { section .sram };
-place in RAM2_region  { readwrite, block CSTACK};
+place in RAM2_region  { readwrite, last block CSTACK};