esp32s2: add brownout detector support

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
This commit is contained in:
Ivan Grokhotkov
2020-01-21 16:32:28 +01:00
parent 46035032cf
commit 70752baba4
11 changed files with 259 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
set(SOC_SRCS "adc_periph.c"
"brownout_hal.c"
"dac_periph.c"
"cpu_util.c"
"gpio_periph.c"