Go to the documentation of this file.
53 #ifndef __GR55xx_HAL_PWR_MGMT_H__
54 #define __GR55xx_HAL_PWR_MGMT_H__
70 #define ALL_DEVICES_SLEEP (0xFFFFFFFFU)
71 #define ALL_DEVICES_BACKUP (0x00000000U)
@ PERIPH_DEVICE_NUM_UART1
extra_device_number_t
Extra Device ID definition.
p_device_resume_func devices_resume_cb[MAX_PERIPH_DEVICE_NUM]
void hal_pwr_mgmt_clear_device_handle(periph_device_number_t dev_num)
Clear the specified peripheral handle.
volatile uint32_t g_devices_sleep
@ PERIPH_DEVICE_NUM_QSPI2
@ PERIPH_DEVICE_NUM_UNUSED0
void hal_pwr_mgmt_set_device_state(periph_device_number_t dev_num, periph_state_t state)
Store the specified peripheral state.
@ PERIPH_DEVICE_NUM_UNUSED5
@ PERIPH_DEVICE_NUM_UNUSED3
void hal_pwr_mgmt_set_extra_device_state(extra_device_number_t dev_num, periph_state_t state)
set the specified extra device state
void * devices_handle[MAX_PERIPH_DEVICE_NUM]
void hal_pwr_mgmt_extra_device_resume_register(extra_device_number_t dev_num, p_device_resume_func my_device_resume_function, void *p_dev_handle)
Set extra resume function.
@ EXTRA_DEVICE_NUM_CLK_CALIB
void hal_pwr_mgmt_device_resume_release(periph_device_number_t dev_num)
Release peripheral resume function.
@ PERIPH_DEVICE_NUM_I2S_M
@ PERIPH_DEVICE_NUM_UNUSED1
void hal_pwr_mgmt_set_extra_device_renew_flag(extra_device_number_t dev_num)
set the specified extra device updata flag
p_device_resume_func extra_devices_resume_cb[MAX_EXTRA_DEVICE_NUM]
@ EXTRA_DEVICE_NUM_UNUSED2
p_device_suspend_func extra_devices_suspend_cb[MAX_EXTRA_DEVICE_NUM]
void hal_pwr_mgmt_extra_device_suspend_register(extra_device_number_t dev_num, p_device_suspend_func my_device_suspend_function, void *p_dev_handle)
Set extra device suspend function.
void hal_pwr_mgmt_set_device_renew_flag(periph_device_number_t dev_num)
Store the specified peripheral backup flag.
@ PERIPH_DEVICE_NUM_QSPI1
hal_status_t(* p_device_suspend_func)(void *p_dev_handle)
Peripheral suspend callback definition.
void hal_pwr_mgmt_save_device_handle(periph_device_number_t dev_num, void *p_dev)
Store the specified peripheral handle.
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.
@ PERIPH_DEVICE_NUM_QSPI0
@ PERIPH_DEVICE_NUM_UART0
@ PERIPH_DEVICE_NUM_UART3
@ PERIPH_DEVICE_NUM_I2S_S
void * extra_devices_handle[MAX_EXTRA_DEVICE_NUM]
@ EXTRA_DEVICE_NUM_UNUSED1
hal_status_t
HAL Status structures definition.
@ EXTRA_DEVICE_NUM_UNUSED0
volatile uint32_t g_extra_devices_renew
volatile uint32_t g_devices_state
void hal_pwr_mgmt_device_suspend_release(periph_device_number_t dev_num)
Release peripheral suspend function.
@ PERIPH_DEVICE_NUM_UNUSED4
@ PERIPH_DEVICE_NUM_UART2
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_extra_devices_state
hal_status_t(* p_device_resume_func)(void *p_dev_handle)
Peripheral resume callback definition.
@ PERIPH_DEVICE_NUM_SNSADC
p_device_suspend_func devices_suspend_cb[MAX_PERIPH_DEVICE_NUM]
periph_state_t
Peripheral Device State definition.
periph_device_number_t
Peripheral Device ID definition NOTE:The order of enumeration is the order of recovery.
@ PERIPH_DEVICE_NUM_UNUSED2
This file contains HAL common definitions, enumeration, macros and structures definitions.
volatile uint32_t g_devices_renew