summaryrefslogtreecommitdiff
path: root/bsp/stm32
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-12-27 17:53:51 +0800
committerRbb666 <[email protected]>2023-12-27 18:17:30 +0800
commit7b4592c2d15bf90c1958bdbc840ea4df3d97cd96 (patch)
tree1e9092a49665b03e13e77f446f1e822436a86c86 /bsp/stm32
parent32ada5eed1510510daff8dce17ebdec00b014c84 (diff)
[ci][stm32l475-pandora] add attach CI checking for sdcard
Diffstat (limited to 'bsp/stm32')
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach2
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/board/SConscript16
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c1
3 files changed, 11 insertions, 8 deletions
diff --git a/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach b/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach
new file mode 100644
index 0000000000..f2366f15bd
--- /dev/null
+++ b/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach
@@ -0,0 +1,2 @@
+CONFIG_BSP_USING_FS=y
+CONFIG_BSP_USING_SDCARD_FATFS=y
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/SConscript
index bf886a10db..cd47c55bc7 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/SConscript
+++ b/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')]
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c
index b368b11aa8..8b7720c189 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c
+++ b/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>