Power Management API.
More...
Power Management API.
◆ PM_NON_RETENTION_SECTION_NAME
#define PM_NON_RETENTION_SECTION_NAME non_ret |
non-retention section name
◆ aon_irq_handler_hook()
void aon_irq_handler_hook |
( |
uint32_t |
wsr | ) |
|
AON IRQHandler hook.
It's defined as weak function in pm module and called by AON_IRQHandler. User could reimplement it and perform customized action.
- Parameters
-
- Return values
-
◆ pm_disable_pin_wakeup()
rt_err_t pm_disable_pin_wakeup |
( |
uint8_t |
pin | ) |
|
Disable pin wakeup.
- Parameters
-
pin | pin number, range: 0~5 |
- Return values
-
◆ pm_disable_rtc_wakeup()
rt_err_t pm_disable_rtc_wakeup |
( |
void |
| ) |
|
Disable RTC wakeup.
- Return values
-
◆ pm_enable_pin_wakeup()
Enable pin wakeup.
- Parameters
-
pin | pin number, range: 0~5, 0 means H/LPAON_WAKEUP_SRC_PIN0, etc. |
mode | pin wakeup mode |
- Return values
-
◆ pm_enable_rtc_wakeup()
rt_err_t pm_enable_rtc_wakeup |
( |
void |
| ) |
|
Enable RTC wakeup.
- Return values
-
◆ pm_get_power_mode()
uint32_t pm_get_power_mode |
( |
void |
| ) |
|
get last low power mode
- Return values
-
◆ pm_get_wakeup_src()
uint32_t pm_get_wakeup_src |
( |
void |
| ) |
|
get last wakeup source
- Return values
-
wakeup | source, for HPSYS, return HPSYS_AON_WSR_RTC and other value if SystemPowerOnModeGet() is PM_COLD_BOOT or PM_COLD_STANDBY return PMUC_WSR_RTC and other value if SystemPowerOnModeGet() is PM_HIBERNATE_BOOT or PM_SHUTDOWN_BOOT for LPSYS, return LPSYS_AON_WSR_RTC and other value if SystemPowerOnModeGet() is PM_COLD_BOOT or PM_COLD_STANDBY |
◆ pm_latch_tick()
rt_tick_t pm_latch_tick |
( |
rt_tick_t |
curr_tick, |
|
|
uint32_t |
curr_time, |
|
|
float |
gtime_freq, |
|
|
void * |
user_data |
|
) |
| |
Calculate the compensated rt_tick.
- Parameters
-
[in] | curr_tick | current rt_tick |
[in] | curr_time | current GTIME |
[in] | gtime_freq | GTIMER frequency |
[in] | user_data | user data |
- Return values
-
◆ pm_scenario_start()
rt_err_t pm_scenario_start |
( |
pm_scenario_name_t |
scenario | ) |
|
Indicate specified scanario is started
- Parameters
-
◆ pm_scenario_stop()
rt_err_t pm_scenario_stop |
( |
pm_scenario_name_t |
scenario | ) |
|
Indicate specified scanario is stopped
- Parameters
-
◆ pm_set_last_latch_tick()
void pm_set_last_latch_tick |
( |
rt_tick_t |
last_latch_tick | ) |
|
Update last latch tick if rt_tick cannot be updated as expected.
- Parameters
-
[in] | last_latch_tick | last_latch_tick |
- Returns
- void