Browse Source

esp32s3: BROWNOUT reset reason is set directly without using the brownout ISR

KonstantinKondrashov 5 năm trước cách đây
mục cha
commit
e62d4a6b81
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      components/hal/esp32s3/brownout_hal.c

+ 1 - 0
components/hal/esp32s3/brownout_hal.c

@@ -30,6 +30,7 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
         .rst_wait = 0x3ff,
         .rst_ena = cfg->reset_enabled,
         .ena = cfg->enabled,
+        .rst_sel = 1,
     };
     RTCCNTL.brown_out = brown_out_reg;
 }