Variables
Variables
Peripheral Driver » HAL Driver » PWR_MGMT

## Variables
volatile uint32_t | g_devices_state
volatile uint32_t | g_devices_renew
volatile uint32_t | g_devices_sleep
p_device_suspend_func | devices_suspend_cb [MAX_PERIPH_DEVICE_NUM]
p_device_resume_func | devices_resume_cb [MAX_PERIPH_DEVICE_NUM]
void * | devices_handle [MAX_PERIPH_DEVICE_NUM]
volatile uint32_t | g_extra_devices_state
volatile uint32_t | g_extra_devices_renew
p_device_suspend_func | extra_devices_suspend_cb [MAX_EXTRA_DEVICE_NUM]
p_device_resume_func | extra_devices_resume_cb [MAX_EXTRA_DEVICE_NUM]
void * | extra_devices_handle [MAX_EXTRA_DEVICE_NUM]

## Detailed Description

## Variable Documentation

## ◆ devices_handle

void* devices_handle[MAX_PERIPH_DEVICE_NUM]
| extern

Store the handle addresses of all peripheral instances

## ◆ devices_resume_cb

p_device_resume_func devices_resume_cb[MAX_PERIPH_DEVICE_NUM]
| extern

Store the resume function of all peripherals

## ◆ devices_suspend_cb

p_device_suspend_func devices_suspend_cb[MAX_PERIPH_DEVICE_NUM]
| extern

Store the suspend function of all peripherals

## ◆ extra_devices_handle

void* extra_devices_handle[MAX_EXTRA_DEVICE_NUM]
| extern

Store the handle addresses of all extra devices instances

## ◆ extra_devices_resume_cb

p_device_resume_func extra_devices_resume_cb[MAX_EXTRA_DEVICE_NUM]
| extern

Store the resume function of all extra devices

## ◆ extra_devices_suspend_cb

p_device_suspend_func extra_devices_suspend_cb[MAX_EXTRA_DEVICE_NUM]
| extern

Store the suspend function of all extra devices

## ◆ g_devices_renew

volatile uint32_t g_devices_renew
| extern

Peripheral updata flag.If peripherals have been used, they need to be backed up

## ◆ g_devices_sleep

volatile uint32_t g_devices_sleep
| extern

Peripheral sleep flag.Go to sleep as 0xFFFFFFFF.The corresponding bit is cleared to 0 after wake-up recovery

## ◆ g_devices_state

volatile uint32_t g_devices_state
| extern

All peripheral status.When all are idle, the system can sleep

## ◆ g_extra_devices_renew

volatile uint32_t g_extra_devices_renew
| extern

Extra devices updata flag.If extra devices have been used, they need to be backed up

## ◆ g_extra_devices_state

volatile uint32_t g_extra_devices_state
| extern

All extra devices status.When all are idle, the system can sleep