refactor(bod): Move brownout handling file from esp_system to esp_hw_support

This commit is contained in:
C.S.M
2025-01-07 14:26:27 +08:00
parent 65577b9caf
commit 5e4fd8ee52
48 changed files with 433 additions and 185 deletions

View File

@@ -1215,10 +1215,6 @@ config SOC_LP_TIMER_BIT_WIDTH_HI
int
default 16
config SOC_LP_TIMER_BOD_SHARE_INTR_SOURCE
bool
default y
config SOC_TIMER_GROUPS
int
default 2

View File

@@ -485,7 +485,6 @@
/*-------------------------- LP_TIMER CAPS ----------------------------------*/
#define SOC_LP_TIMER_BIT_WIDTH_LO 32 // Bit width of lp_timer low part
#define SOC_LP_TIMER_BIT_WIDTH_HI 16 // Bit width of lp_timer high part
#define SOC_LP_TIMER_BOD_SHARE_INTR_SOURCE 1 //LP timer and brownout detector share the interrupt source
/*--------------------------- TIMER GROUP CAPS ---------------------------------------*/
#define SOC_TIMER_GROUPS (2)

View File

@@ -0,0 +1,11 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "soc/power_supply_periph.h"
const power_supply_signal_conn_t power_supply_periph_signal = {
.irq = ETS_LP_RTC_TIMER_INTR_SOURCE,
};