mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
70752baba4
1. add brownout detector HAL for esp32 and esp32s2 2. enable brownout reset for esp32 rev. 1 and above 3. add approximate brownout detector levels for esp32s2
35 lines
812 B
CMake
35 lines
812 B
CMake
set(SOC_SRCS "adc_periph.c"
|
|
"brownout_hal.c"
|
|
"dac_periph.c"
|
|
"cpu_util.c"
|
|
"gpio_periph.c"
|
|
"rtc_clk.c"
|
|
"rtc_clk_init.c"
|
|
"rtc_init.c"
|
|
"rtc_io_periph.c"
|
|
"rtc_periph.c"
|
|
"rtc_pm.c"
|
|
"rtc_sleep.c"
|
|
"rtc_time.c"
|
|
"rtc_wdt.c"
|
|
"sdio_slave_periph.c"
|
|
"sdmmc_periph.c"
|
|
"interrupts.c"
|
|
"soc_memory_layout.c"
|
|
"spi_periph.c"
|
|
"ledc_periph.c"
|
|
"i2s_periph.c"
|
|
"i2c_periph.c"
|
|
"uart_periph.c"
|
|
"touch_sensor_hal.c"
|
|
"touch_sensor_periph.c")
|
|
|
|
if(NOT BOOTLOADER_BUILD AND CONFIG_ETH_USE_ESP32_EMAC)
|
|
list(APPEND SOC_SRCS "emac_hal.c")
|
|
endif()
|
|
|
|
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
|
set_source_files_properties("esp32/rtc_clk.c" PROPERTIES
|
|
COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion")
|
|
endif()
|