STM8L15x Standard Peripherals Drivers
|
stm8l15x_pwr.c File Reference
This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral:
- PVD configuration
- Ultra Low Power mode configuration
- Interrupts and flags management.
#include "stm8l15x_pwr.h"
Go to the source code of this file.
Functions | |
void | PWR_DeInit (void) |
Deinitializes the PWR peripheral registers to their default reset values. | |
void | PWR_FastWakeUpCmd (FunctionalState NewState) |
Enables or disables the Fast WakeUp from Ultra Low Power mode. | |
FlagStatus | PWR_GetFlagStatus (PWR_FLAG_TypeDef PWR_FLAG) |
Checks whether the specified PWR flag is set or not. | |
void | PWR_PVDClearFlag (void) |
Clears the PWR PVDIF Flag. | |
void | PWR_PVDClearITPendingBit (void) |
Clears the PWR interrupt pending bit. | |
void | PWR_PVDCmd (FunctionalState NewState) |
Enables or disables the Power Voltage Detector(PVD). | |
ITStatus | PWR_PVDGetITStatus (void) |
Checks whether the PVD interrupt has occurred or not. | |
void | PWR_PVDITConfig (FunctionalState NewState) |
Configures the Programmable Voltage Detector (PVD) Interrupt . | |
void | PWR_PVDLevelConfig (PWR_PVDLevel_TypeDef PWR_PVDLevel) |
Configures the voltage threshold detected by the Power Voltage Detector(PVD). | |
void | PWR_UltraLowPowerCmd (FunctionalState NewState) |
Enables or disables the Ultra Low Power mode. |
Detailed Description
This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral:
- PVD configuration
- Ultra Low Power mode configuration
- Interrupts and flags management.
- Attention:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2011 STMicroelectronics
Definition in file stm8l15x_pwr.c.