Go to the documentation of this file.
53 #ifndef __GR533x_HAL_PWR_MGMT_H__
54 #define __GR533x_HAL_PWR_MGMT_H__
65 #define ALL_DEVICES_SLEEP (0xFFFFFFFFU)
66 #define ALL_DEVICES_BACKUP (0x00000000U)
@ PERIPH_DEVICE_NUM_UART1
void hal_pwr_mgmt_clear_device_handle(periph_device_number_t dev_num)
Clear the specified peripheral handle.
p_device_resume_func devices_resume_cb[MAX_PERIPH_DEVICE_NUM]
void hal_pwr_mgmt_set_device_state(periph_device_number_t dev_num, periph_state_t state)
Store the specified peripheral state.
void * devices_handle[MAX_PERIPH_DEVICE_NUM]
void hal_pwr_mgmt_device_resume_release(periph_device_number_t dev_num)
Release peripheral resume function.
hal_status_t(* p_device_resume_func)(void *p_dev_handle)
HAL_PWR_RESUME Callback function definition.
void hal_pwr_mgmt_set_device_renew_flag(periph_device_number_t dev_num)
Store the specified peripheral backup flag.
void hal_pwr_mgmt_save_device_handle(periph_device_number_t dev_num, void *p_dev)
Store the specified peripheral handle.
volatile uint32_t g_devices_renew
volatile uint32_t g_devices_state
void hal_pwr_mgmt_device_suspend_register(periph_device_number_t dev_num, p_device_suspend_func my_device_suspend_function)
Set peripheral suspend function.
void hal_pwr_mgmt_clear_device_sleep_flag(periph_device_number_t dev_num)
Store the specified peripheral sleep flag.
hal_status_t(* p_device_suspend_func)(void *p_dev_handle)
HAL_PWR_SUSPEND Callback function definition.
@ PERIPH_DEVICE_NUM_UART0
hal_status_t
HAL Status structures definition.
void hal_pwr_mgmt_device_suspend_release(periph_device_number_t dev_num)
Release peripheral suspend function.
@ PERIPH_DEVICE_NUM_CLK_CALIB
void hal_pwr_mgmt_device_resume_register(periph_device_number_t dev_num, p_device_resume_func my_device_resume_function)
Set peripheral resume function.
volatile uint32_t g_devices_sleep
This file contains HAL common definitions, enumeration, macros and structures definitions.
@ PERIPH_DEVICE_NUM_SNSADC
periph_state_t
Peripheral Device State definition.
periph_device_number_t
Peripheral Device ID definition.
p_device_suspend_func devices_suspend_cb[MAX_PERIPH_DEVICE_NUM]