|
@@ -44,7 +44,6 @@ if(IDF_TARGET STREQUAL "esp32s2")
|
|
|
"esp32s2/adc2_init_cal.c"
|
|
"esp32s2/adc2_init_cal.c"
|
|
|
"spi_slave_hd.c"
|
|
"spi_slave_hd.c"
|
|
|
"esp32s2/dac.c")
|
|
"esp32s2/dac.c")
|
|
|
- # currently only S2 beta has its own target-specific includes
|
|
|
|
|
list(APPEND includes "esp32s2/include")
|
|
list(APPEND includes "esp32s2/include")
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
@@ -52,7 +51,7 @@ idf_component_register(SRCS "${srcs}"
|
|
|
INCLUDE_DIRS ${includes}
|
|
INCLUDE_DIRS ${includes}
|
|
|
PRIV_INCLUDE_DIRS "include/driver"
|
|
PRIV_INCLUDE_DIRS "include/driver"
|
|
|
PRIV_REQUIRES efuse esp_timer esp_ipc
|
|
PRIV_REQUIRES efuse esp_timer esp_ipc
|
|
|
- REQUIRES esp_ringbuf freertos soc) #cannot totally hide soc headers, since there are a lot arguments in the driver are chip-dependent
|
|
|
|
|
|
|
+ REQUIRES esp_ringbuf freertos soc hal) # cannot totally hide soc headers, since there are a lot arguments in the driver are chip-dependent
|
|
|
|
|
|
|
|
# uses C11 atomic feature
|
|
# uses C11 atomic feature
|
|
|
set_source_files_properties(spi_master.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
|
set_source_files_properties(spi_master.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|