feat(mcpwm): support sleep retention
This commit is contained in:
@@ -976,6 +976,11 @@ However, the driver can prevent the system from going into Light-sleep by acquir
|
||||
|
||||
Likewise, whenever the driver creates an MCPWM capture timer instance, the driver guarantees that the power management lock is acquired when enabling the timer by :cpp:func:`mcpwm_capture_timer_enable`. And releases the lock in :cpp:func:`mcpwm_capture_timer_disable`.
|
||||
|
||||
.. only:: SOC_MCPWM_SUPPORT_SLEEP_RETENTION
|
||||
|
||||
{IDF_TARGET_NAME} supports to retain the MCPWM register context before entering **Light-sleep** and restore them after woke up. Which means you don't have to re-init the MCPWM driver after the **Light-sleep**.
|
||||
|
||||
This feature can be enabled by setting the flag :cpp:member:`mcpwm_timer_config_t::allow_pd` or :cpp:member:`mcpwm_capture_timer_config_t::allow_pd`. It will allow the system to power down the MCPWM in Light-sleep, meanwhile save the MCPWM register context. It can help to save more power consumption with some extra cost of the memory.
|
||||
|
||||
.. _mcpwm-iram-safe:
|
||||
|
||||
|
||||
@@ -156,6 +156,7 @@ The following peripheral drivers are not aware of DFS yet. Applications need to
|
||||
:SOC_LEDC_SUPPORT_SLEEP_RETENTION: - LEDC
|
||||
:SOC_I2C_SUPPORT_SLEEP_RETENTION: - I2C
|
||||
:SOC_I2S_SUPPORT_SLEEP_RETENTION: - I2S
|
||||
:SOC_MCPWM_SUPPORT_SLEEP_RETENTION: - MCPWM
|
||||
:SOC_UART_SUPPORT_SLEEP_RETENTION: - All UARTs
|
||||
:SOC_TEMPERATURE_SENSOR_SUPPORT_SLEEP_RETENTION: - Temperature Sensor
|
||||
:SOC_TWAI_SUPPORT_SLEEP_RETENTION: - All TWAIs
|
||||
@@ -177,7 +178,6 @@ The following peripheral drivers are not aware of DFS yet. Applications need to
|
||||
- Crypto: AES/ECC/HMAC/RSA/SHA/DS/XTA_AES/ECDSA
|
||||
- PCNT
|
||||
- USB-Serial-JTAG
|
||||
- MCPWM
|
||||
- SARADC
|
||||
|
||||
.. note::
|
||||
|
||||
Reference in New Issue
Block a user