]> granicus.if.org Git - esp-idf/blob - components/spi_flash/Kconfig
Merge branch 'bugfix/touch_pad_register_mismatch' into 'master'
[esp-idf] / components / spi_flash / Kconfig
1 menu "SPI Flash driver"
2
3 config SPI_FLASH_ENABLE_COUNTERS
4     bool "Enable operation counters"
5     default 0
6     help
7         This option enables the following APIs:
8             
9         - spi_flash_reset_counters
10         - spi_flash_dump_counters
11         - spi_flash_get_counters
12         
13         These APIs may be used to collect performance data for spi_flash APIs
14         and to help understand behaviour of libraries which use SPI flash.
15
16 config SPI_FLASH_ROM_DRIVER_PATCH
17     bool "Enable SPI flash ROM driver patched functions"
18     default y
19     help
20         Enable this flag to use patched versions of SPI flash ROM driver functions.
21         This option is needed to write to flash on ESP32-D2WD, and any configuration
22         where external SPI flash is connected to non-default pins.
23
24 choice SPI_FLASH_WRITING_DANGEROUS_REGIONS
25     bool  "Writing to dangerous flash regions"
26     default SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS
27     help
28         SPI flash APIs can optionally abort or return a failure code
29         if erasing or writing addresses that fall at the beginning
30         of flash (covering the bootloader and partition table) or that
31         overlap the app partition that contains the running app.
32
33         It is not recommended to ever write to these regions from an IDF app,
34         and this check prevents logic errors or corrupted firmware memory from
35         damaging these regions.
36
37         Note that this feature *does not* check calls to the esp_rom_xxx SPI flash
38         ROM functions. These functions should not be called directly from IDF
39         applications.
40
41 config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS
42      bool "Aborts"
43 config SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS
44      bool "Fails"
45 config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED
46      bool "Allowed"
47 endchoice
48
49 endmenu
50
51