From 46b19b852696495e51d8a48090908683b7fbacf4 Mon Sep 17 00:00:00 2001 From: "C.S.M" Date: Sat, 11 May 2024 15:27:34 +0800 Subject: [PATCH] bugfix(brownout): fix issue that no wait cycle on c3 and c2 --- components/hal/esp32c2/include/hal/brownout_ll.h | 2 +- components/hal/esp32c3/include/hal/brownout_ll.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/hal/esp32c2/include/hal/brownout_ll.h b/components/hal/esp32c2/include/hal/brownout_ll.h index 77b77a6968..68da0d9f93 100644 --- a/components/hal/esp32c2/include/hal/brownout_ll.h +++ b/components/hal/esp32c2/include/hal/brownout_ll.h @@ -83,7 +83,7 @@ static inline void brownout_ll_bod_enable(bool bod_enable) */ static inline void brownout_ll_set_intr_wait_cycles(uint8_t cycle) { - // Not supported on ESP32C2 + RTCCNTL.brown_out.int_wait = cycle; } /** diff --git a/components/hal/esp32c3/include/hal/brownout_ll.h b/components/hal/esp32c3/include/hal/brownout_ll.h index 4a60eb4424..4cc8d95f67 100644 --- a/components/hal/esp32c3/include/hal/brownout_ll.h +++ b/components/hal/esp32c3/include/hal/brownout_ll.h @@ -83,7 +83,7 @@ static inline void brownout_ll_bod_enable(bool bod_enable) */ static inline void brownout_ll_set_intr_wait_cycles(uint8_t cycle) { - // Not supported on ESP32C3 + RTCCNTL.brown_out.int_wait = cycle; } /**