From 7b4592c2d15bf90c1958bdbc840ea4df3d97cd96 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 27 Dec 2023 17:53:51 +0800 Subject: [ci][stm32l475-pandora] add attach CI checking for sdcard --- .../stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach | 2 ++ bsp/stm32/stm32l475-atk-pandora/board/SConscript | 16 ++++++++-------- .../stm32l475-atk-pandora/board/ports/drv_filesystem.c | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach (limited to 'bsp/stm32') 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 +#include #include #include #include -- cgit v1.3.1