Modules | Variables
PWR_MGMT
Peripheral Driver » HAL Driver

PWR_MGMT HAL module driver. More...

## Modules
| Defines
| Enumerations
| Callback
| Functions

## 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]

## Detailed Description

PWR_MGMT HAL module driver.

## 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

## ◆ g_devices_renew

volatile uint32_t g_devices_renew
| extern

Peripheral backup 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