feat(storage/fatfs): restructure ext_flash example

This commit is contained in:
Tomáš Rohlínek
2024-08-05 14:16:58 +02:00
committed by Tomas Rohlinek
parent 587290567d
commit 33788de979
9 changed files with 21 additions and 19 deletions

View File

@@ -19,21 +19,6 @@ examples/storage/emmc:
- if: IDF_TARGET == "esp32s3" - if: IDF_TARGET == "esp32s3"
reason: only support on esp32s3 reason: only support on esp32s3
examples/storage/ext_flash_fatfs:
depends_components:
- fatfs
- vfs
- spi_flash
- driver
disable:
- if: IDF_TARGET in ["esp32p4", "esp32c5", "esp32c61"]
temporary: true
reason: not supported on p4 and c5 # TODO: [ESP32C5] IDF-8715, [ESP32C61] IDF-9314
disable_test:
- if: IDF_TARGET not in ["esp32"]
temporary: true
reason: lack of runners
examples/storage/nvs_rw_blob: examples/storage/nvs_rw_blob:
depends_components: depends_components:
- nvs_flash - nvs_flash

View File

@@ -1 +0,0 @@
idf_component_register(SRCS "ext_flash_fatfs_example_main.c")

View File

@@ -7,3 +7,18 @@ examples/storage/fatfs:
disable_test: disable_test:
- if: IDF_TARGET != "esp32" - if: IDF_TARGET != "esp32"
reason: only one target needed reason: only one target needed
examples/storage/fatfs/ext_flash:
depends_components:
- fatfs
- vfs
- spi_flash
- driver
disable:
- if: IDF_TARGET in ["esp32p4", "esp32c5", "esp32c61"]
temporary: true
reason: not supported on p4 and c5 # TODO: [ESP32C5] IDF-8715, [ESP32C61] IDF-9314
disable_test:
- if: IDF_TARGET not in ["esp32"]
temporary: true
reason: lack of runners

View File

@@ -0,0 +1 @@
idf_component_register(SRCS "fatfs_ext_flash_example_main.c")

View File

@@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
/* Example of FAT filesystem on external Flash. /* Example of FAT filesystem on external Flash.
This example code is in the Public Domain (or CC0 licensed, at your option.) This example code is in the Public Domain (or CC0 licensed, at your option.)

View File

@@ -1,7 +1,5 @@
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0 # SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest import pytest
from pytest_embedded import Dut from pytest_embedded import Dut

View File

@@ -1023,7 +1023,6 @@ examples/security/flash_encryption/main/flash_encrypt_main.c
examples/storage/custom_flash_driver/components/custom_chip_driver/chip_drivers.c examples/storage/custom_flash_driver/components/custom_chip_driver/chip_drivers.c
examples/storage/custom_flash_driver/components/custom_chip_driver/spi_flash_chip_eon.c examples/storage/custom_flash_driver/components/custom_chip_driver/spi_flash_chip_eon.c
examples/storage/custom_flash_driver/main/main.c examples/storage/custom_flash_driver/main/main.c
examples/storage/ext_flash_fatfs/main/ext_flash_fatfs_example_main.c
examples/storage/nvs_rw_blob/main/nvs_blob_example_main.c examples/storage/nvs_rw_blob/main/nvs_blob_example_main.c
examples/storage/nvs_rw_value/main/nvs_value_example_main.c examples/storage/nvs_rw_value/main/nvs_value_example_main.c
examples/storage/nvs_rw_value_cxx/main/nvs_value_example_main.cpp examples/storage/nvs_rw_value_cxx/main/nvs_value_example_main.cpp