Go to the documentation of this file.
52 #ifndef __GR55xx_HAL_SLEEP_TIMER_H__
53 #define __GR55xx_HAL_SLEEP_TIMER_H__
107 #define PWR_SLP_TIMER_MODE_NORMAL LL_SLEEP_TIMER_SINGLE_MODE_0
108 #define PWR_SLP_TIMER_MODE_SINGLE LL_SLEEP_TIMER_SINGLE_MODE_1
109 #define PWR_SLP_TIMER_MODE_RELOAD LL_SLEEP_TIMER_AUTO_MODE
115 #define SLEEP_TIMER_CLK_SEL_RNG_OSC LL_SLEEP_TIMER_CLK_SEL_RNG_OSC
116 #define SLEEP_TIMER_CLK_SEL_XO LL_SLEEP_TIMER_CLK_SEL_XO
117 #define SLEEP_TIMER_CLK_SEL_RNG2_OSC LL_SLEEP_TIMER_CLK_SEL_RNG2_OSC
118 #define SLEEP_TIMER_CLK_SEL_RTC_OSC LL_SLEEP_TIMER_CLK_SEL_RTC_OSC
124 #define HAL_PWR_TIMEOUT_DEFAULT_VALUE ((uint32_t)0x000FFFFF)
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.
void hal_pwr_sleep_timer_elapsed_callback(void)
PWR Sleep Timer Elapsed callback.
uint32_t hal_sleep_timer_get_current_value(void)
Get the current value of sleep timer.
struct _pwr_handler pwr_handler_t
PWR callback handle Structure definition.
void hal_pwr_sleep_timer_irq_handler(void)
Handle PWR Sleep Timer interrupt request.
uint32_t hal_sleep_timer_get_reload_value(void)
Get the reload value of sleep timer.
void(* pwr_slp_elapsed_handler_t)(void)
PWR Sleep Timer Elapsed callback.
PWR callback handle Structure definition.
Header file containing functions prototypes of sleep timer LL library.
hal_status_t
HAL Status structures definition.
uint32_t hal_sleep_timer_get_clock_freq(void)
Get clock frequency of sleep timer.
void hal_sleep_timer_stop(void)
stop Sleep Timer
uint8_t hal_sleep_timer_status_get(void)
get sleep timer is running or not
pwr_slp_elapsed_handler_t pwr_slp_elapsed_hander
void hal_sleep_timer_clock_set(uint32_t clock_src)
Set the clock source of sleep timer.
This file contains HAL common definitions, enumeration, macros and structures definitions.