mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-24 17:27:21 +00:00
driver/rtc: add APIs to enable/disable hold function
This commit is contained in:
@@ -185,7 +185,7 @@ void start_cpu0_default(void)
|
||||
#if CONFIG_BROWNOUT_DET
|
||||
esp_brownout_init();
|
||||
#endif
|
||||
rtc_gpio_unhold_all();
|
||||
rtc_gpio_force_hold_dis_all();
|
||||
esp_setup_time_syscalls();
|
||||
esp_vfs_dev_uart_register();
|
||||
esp_reent_init(_GLOBAL_REENT);
|
||||
|
@@ -291,7 +291,7 @@ static void ext1_wakeup_prepare()
|
||||
REG_SET_BIT(desc->reg, desc->ie);
|
||||
REG_CLR_BIT(desc->reg, desc->pulldown);
|
||||
REG_CLR_BIT(desc->reg, desc->pullup);
|
||||
REG_SET_BIT(RTC_CNTL_HOLD_FORCE_REG, desc->hold);
|
||||
REG_SET_BIT(RTC_CNTL_HOLD_FORCE_REG, desc->hold_force);
|
||||
}
|
||||
// Keep track of pins which are processed to bail out early
|
||||
rtc_gpio_mask &= ~BIT(rtc_pin);
|
||||
|
Reference in New Issue
Block a user