Merge branch 'refactor/split_bod_hal' into 'master'

refactor(bod): Move bod hal to pmu hal component

Closes IDF-14104

See merge request espressif/esp-idf!44503
This commit is contained in:
C.S.M
2025-12-25 15:37:54 +08:00
19 changed files with 11 additions and 18 deletions
+8
View File
@@ -21,6 +21,14 @@ if(CONFIG_SOC_PAU_SUPPORTED)
list(APPEND srcs "${target}/pau_hal.c")
endif()
if(CONFIG_SOC_BOD_SUPPORTED)
list(APPEND srcs "brownout_hal.c")
endif()
if(CONFIG_SOC_VBAT_SUPPORTED)
list(APPEND srcs "vbat_hal.c")
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
REQUIRES soc hal esp_rom
@@ -123,7 +123,6 @@ static inline void brownout_ll_clear_count(void)
// Not supported on esp32
}
#ifdef __cplusplus
}
#endif
@@ -18,7 +18,6 @@
#include "hal/regi2c_ctrl.h"
#include "soc/regi2c_brownout.h"
typedef enum {
VBAT_LL_CHARGER_UPVOLTAGE_INTR = BIT(27),
VBAT_LL_CHARGER_UNDERVOLTAGE_INTR = BIT(28),
@@ -19,7 +19,6 @@
#include "hal/regi2c_ctrl.h"
#include "soc/regi2c_brownout.h"
typedef enum {
VBAT_LL_CHARGER_UPVOLTAGE_INTR = BIT(27),
VBAT_LL_CHARGER_UNDERVOLTAGE_INTR = BIT(28),
@@ -127,7 +127,6 @@ static inline void brownout_ll_clear_count(void)
RTCCNTL.brown_out.cnt_clr = 0;
}
#ifdef __cplusplus
}
#endif
@@ -132,7 +132,6 @@ static inline void brownout_ll_clear_count(void)
RTCCNTL.brown_out.cnt_clr = 0;
}
#ifdef __cplusplus
}
#endif
@@ -36,7 +36,6 @@ typedef struct {
*/
void brownout_hal_config(const brownout_hal_config_t *cfg);
#ifdef __cplusplus
}
#endif
+1 -10
View File
@@ -47,8 +47,7 @@ else()
endif()
if(esp_tee_build)
list(APPEND srcs "apm_hal.c"
"brownout_hal.c")
list(APPEND srcs "apm_hal.c")
if(CONFIG_SOC_AES_SUPPORTED)
list(APPEND srcs "aes_hal.c")
@@ -124,14 +123,6 @@ elseif(NOT BOOTLOADER_BUILD)
list(APPEND srcs "${target}/modem_clock_hal.c")
endif()
if(CONFIG_SOC_BOD_SUPPORTED)
list(APPEND srcs "brownout_hal.c")
endif()
if(CONFIG_SOC_VBAT_SUPPORTED)
list(APPEND srcs "vbat_hal.c")
endif()
if(CONFIG_SOC_SDIO_SLAVE_SUPPORTED)
list(APPEND srcs "sdio_slave_hal.c")
endif()