From c2e4b73114fff3bc068de26bdd42aaf492c679af Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 27 Dec 2023 18:03:20 +0800 Subject: [PATCH] [ci][stm32f407-explorer] add file system CI checking --- .../.ci/attachconfig/sdcard-fatfs.attach} | 0 .../stm32f407-atk-explorer/.ci/attachconfig/sdcard.attach | 2 -- .../.ci/attachconfig/spiflash-littlefs.attach | 2 ++ bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c | 3 ++- .../stm32l475-atk-pandora/.ci/attachconfig/sdcard-fatfs.attach | 2 ++ 5 files changed, 6 insertions(+), 3 deletions(-) rename bsp/stm32/{stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach => stm32f407-atk-explorer/.ci/attachconfig/sdcard-fatfs.attach} (100%) delete mode 100644 bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/sdcard.attach create mode 100644 bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/spiflash-littlefs.attach create mode 100644 bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard-fatfs.attach diff --git a/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach b/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/sdcard-fatfs.attach similarity index 100% rename from bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard.attach rename to bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/sdcard-fatfs.attach diff --git a/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/sdcard.attach b/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/sdcard.attach deleted file mode 100644 index d87e0ee665..0000000000 --- a/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/sdcard.attach +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_BSP_USING_FS=y -BSP_USING_SDCARD_FATFS=y diff --git a/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/spiflash-littlefs.attach b/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/spiflash-littlefs.attach new file mode 100644 index 0000000000..cea386771b --- /dev/null +++ b/bsp/stm32/stm32f407-atk-explorer/.ci/attachconfig/spiflash-littlefs.attach @@ -0,0 +1,2 @@ +CONFIG_BSP_USING_FS=y +CONFIG_BSP_USING_SPI_FLASH_LITTLEFS=y diff --git a/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c b/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c index 44cb6a5b9a..d467ba3181 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c @@ -11,7 +11,8 @@ #include #include "spi_flash.h" #include "spi_flash_sfud.h" -#include "drv_spi.h" +#include +#include #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard-fatfs.attach b/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard-fatfs.attach new file mode 100644 index 0000000000..f2366f15bd --- /dev/null +++ b/bsp/stm32/stm32l475-atk-pandora/.ci/attachconfig/sdcard-fatfs.attach @@ -0,0 +1,2 @@ +CONFIG_BSP_USING_FS=y +CONFIG_BSP_USING_SDCARD_FATFS=y