eLooM for STM32 application
v3.3.0
|
This file declares the public API related to the power management. More...
Go to the source code of this file.
Macros | |
#define | SYS_PM_MAKE_EVENT(src, params) ((((src) & 0X7U) | (((params)<<3) & 0xF8U)) & 0x000000FF) |
#define | SYS_IS_CALLED_FROM_ISR() (((SCB->ICSR) & (SCB_ICSR_VECTACTIVE_Msk)) != 0U ? TRUE : FALSE) |
Functions | |
SysPowerStatus | SysGetPowerStatus (void) |
EPowerMode | SysGetPowerMode (void) |
sys_error_code_t | SysPostPowerModeEvent (SysEvent xEvent) |
This file declares the public API related to the power management.
This header file declares the public API and the data structures used by the application tasks in order to:
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
#define SYS_IS_CALLED_FROM_ISR | ( | ) | (((SCB->ICSR) & (SCB_ICSR_VECTACTIVE_Msk)) != 0U ? TRUE : FALSE) |
Check if the current code is inside an ISR or not.
#define SYS_PM_MAKE_EVENT | ( | src, | |
params | |||
) | ((((src) & 0X7U) | (((params)<<3) & 0xF8U)) & 0x000000FF) |
Macro to make system power mode event.
src | [IN] specifies the source of the event |
params | [IN] specifies a parameter. Its value depend on the event source. |
EPowerMode SysGetPowerMode | ( | void | ) |
Get the current system power mode.
SysPowerStatus SysGetPowerStatus | ( | void | ) |
Get a copy of the system status related to the power management.
sys_error_code_t SysPostPowerModeEvent | ( | SysEvent | xEvent | ) |
Notify the system about an event related to the power mode management. This function can be called also from an ISR.
xEvent | [IN] specifies a power mode event. |