Browse Source

[ci][stm32l475-pandora] add attach CI checking for sdcard

Meco Man 1 year ago
parent
commit
7b4592c2d1

+ 2 - 0
bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach

@@ -0,0 +1,2 @@
+CONFIG_BSP_USING_FS=y
+CONFIG_BSP_USING_SDCARD_FATFS=y

+ 8 - 8
bsp/stm32/stm32l475-atk-pandora/board/SConscript

@@ -17,29 +17,29 @@ path += [cwd + '/CubeMX_Config/Inc']
 
 if not GetDepend(['RT_USING_NANO']):
     if GetDepend(['BSP_USING_KEY']):
-        src += os.path.join('ports', 'drv_key.c')
+        src += [os.path.join('ports', 'drv_key.c')]
 
     if GetDepend(['BSP_USING_QSPI_FLASH']):
-        src += os.path.join('ports', 'drv_qspi_flash.c')
+        src += [os.path.join('ports', 'drv_qspi_flash.c')]
 
     if GetDepend(['BSP_USING_FS']):
-        src += os.path.join('ports', 'drv_filesystem.c')
+        src += [os.path.join('ports', 'drv_filesystem.c')]
         if GetDepend(['BSP_USING_SPI_FLASH_LITTLEFS']):
-            src += os.path.join('ports', 'fal', 'fal_spi_flash_sfud_port.c')
+            src += [os.path.join('ports', 'fal', 'fal_spi_flash_sfud_port.c')]
             path += [cwd + os.path.join('ports', 'fal')]
 
     if GetDepend(['RT_USING_SENSOR']):
         src += os.path.join('ports', 'drv_sensors.c')
 
     if GetDepend(['BSP_USING_AUDIO']):
-        src += os.path.join('ports', 'audio', 'drv_es8388.c')
-        src += os.path.join('ports', 'audio', 'drv_sound.c')
+        src += [os.path.join('ports', 'audio', 'drv_es8388.c')]
+        src += [os.path.join('ports', 'audio', 'drv_sound.c')]
 
     if GetDepend(['BSP_USING_AUDIO_RECORD']):
-        src += os.path.join('ports', 'audio', 'drv_mic.c')
+        src += [os.path.join('ports', 'audio', 'drv_mic.c')]
 
     if GetDepend(['BSP_USING_STM32_SDIO']):
-        src += os.path.join('ports', 'drv_sdio_adapter.c')
+        src += [os.path.join('ports', 'drv_sdio_adapter.c')]
 
     if GetDepend(['BSP_USING_AUDIO']):
         path += [cwd + os.path.join('ports', 'audio')]

+ 1 - 0
bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c

@@ -10,6 +10,7 @@
  */
 
 #include <rtthread.h>
+#include <drv_gpio.h>
 #include <dfs_elm.h>
 #include <dfs_fs.h>
 #include <dfs_file.h>