File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,13 @@ extern "C" {
41
41
#include " hal/spi_flash_ll.h"
42
42
#if CONFIG_IDF_TARGET_ESP32
43
43
#include " soc/spi_struct.h"
44
- #elif CONFIG_IDF_TARGET_ESP32P4 || CONFIG_IDF_TARGET_ESP32C5
44
+ #elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2
45
45
#include " hal/spimem_flash_ll.h"
46
- #include " soc/spi_mem_c_struct .h"
46
+ #include " soc/spi_mem_struct .h"
47
47
#else
48
+ // ESP32-P4, ESP32-C5, and future chips use spi_mem_c_struct.h
48
49
#include " hal/spimem_flash_ll.h"
49
- #include " soc/spi_mem_struct .h"
50
+ #include " soc/spi_mem_c_struct .h"
50
51
#endif
51
52
52
53
#ifdef ESP_IDF_VERSION_MAJOR // IDF 4+
You can’t perform that action at this time.
0 commit comments