MG32L003 Standard Peripherals Firmware Library
Macros | Functions
mg32l003_pwr.h File Reference

This file contains all the functions prototypes for the PWR firmware library. More...

#include "mg32l003.h"

Go to the source code of this file.

Macros

#define PWR_SLEEPENTRY_WFI   ((uint8_t)0x01)
 
#define PWR_SLEEPENTRY_WFE   ((uint8_t)0x02)
 
#define IS_PWR_SLEEP_ENTRY(ENTRY)   (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))
 

Functions

void PWR_EnterSLEEPMode (uint8_t SLEEPEntry)
 Enters Sleep mode. More...
 
void PWR_EnterDEEPSLEEPMode (void)
 Enters Deep Sleep mode. More...
 
void PWR_EnableSleepOnExit (void)
 Indicates Sleep-On-Exit when returning from Handler mode to Thread mode. More...
 
void PWR_DisableSleepOnExit (void)
 Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode. More...
 
void PWR_EnableSEVOnPend (void)
 Enables CORTEX M0+ SEVONPEND bit. More...
 
void PWR_DisableSEVOnPend (void)
 Disables CORTEX M0+ SEVONPEND bit. More...
 

Detailed Description

This file contains all the functions prototypes for the PWR firmware library.

Author
megawin Application Team
Version
V0.0.5
Date
13-August-2024