components/esp_hal_pmu/README.md
[!NOTE] This component is currently in beta. Its API, behavior, and compatibility may change at any time and without notice; backward compatibility is not guaranteed. Use caution when integrating into production systems.
The esp_hal_pmu component provides a Hardware Abstraction Layer for Power Management Unit (PMU) and legacy RTC Control (RTC_CNTL) peripherals across ESP-IDF supported targets. This HAL enables unified power management operations including sleep mode control, power domain management, wakeup configuration, and retention control across different ESP chip families.
The component consolidates power management functionality from three different peripheral implementations:
The HAL architecture consists of two primary layers:
HAL Layer (Upper): Defines the operational sequences and data structures required to interact with PMU/RTC_CNTL/PAU peripherals, including:
Low-Level Layer (Bottom): Acts as a translation layer between the HAL and the register definitions in the soc component, handling:
This component is primarily used by ESP-IDF system services such as:
For advanced developers implementing custom power management solutions, the HAL functions can be used directly. However, please note that the interfaces provided by this component are internal to ESP-IDF and are subject to change.
soc: Provides chip-specific register definitions and peripheral capabilitieshal: Core hardware abstraction utilities and macrosesp_rom: ROM function interfaces (where applicable)