Functions | |
| void | hal_pwr_enter_chip_deepsleep (void) |
| Enters DeepSleep mode. More... | |
| hal_status_t | hal_sleep_timer_config_and_start (uint8_t mode, uint32_t value) |
| Configure the AON Sleep Timer mode, count and start used to wakeup MCU. More... | |
| void | hal_sleep_timer_stop (void) |
| stop Sleep Timer More... | |
| uint32_t | hal_sleep_timer_get_reload_value (void) |
| Get the reload value of sleep timer. More... | |
| uint32_t | hal_sleep_timer_get_current_value (void) |
| Get the current value of sleep timer. More... | |
| uint32_t | hal_sleep_timer_get_clock_freq (void) |
| Get clock frequency of sleep timer. More... | |
| void | hal_sleep_timer_clock_set (uint32_t clock_src) |
| Set the clock source of sleep timer. More... | |
| uint8_t | hal_sleep_timer_status_get (void) |
| get sleep timer is running or not More... | |
| void hal_pwr_enter_chip_deepsleep | ( | void | ) |
Enters DeepSleep mode.
| void hal_sleep_timer_clock_set | ( | uint32_t | clock_src | ) |
Set the clock source of sleep timer.
| [in] | clock_src | value This parameter can be a one of the following values: |
| hal_status_t hal_sleep_timer_config_and_start | ( | uint8_t | mode, |
| uint32_t | value | ||
| ) |
Configure the AON Sleep Timer mode, count and start used to wakeup MCU.
| [in] | mode | Specifies the sleep timer mode. This parameter can be a combination of the following values: |
| [in] | value | Count value of the AON Sleep Timer. |
| uint32_t hal_sleep_timer_get_clock_freq | ( | void | ) |
Get clock frequency of sleep timer.
| clock | frequency of sleep timer |
| uint32_t hal_sleep_timer_get_current_value | ( | void | ) |
Get the current value of sleep timer.
| the | current value of sleep timer |
| uint32_t hal_sleep_timer_get_reload_value | ( | void | ) |
Get the reload value of sleep timer.
| the | reload value of sleep timer |
| uint8_t hal_sleep_timer_status_get | ( | void | ) |
get sleep timer is running or not
| runing | state of sleep timer (1 or 0). |
| void hal_sleep_timer_stop | ( | void | ) |
stop Sleep Timer