STM8S/A Standard Peripherals Drivers
|
Functions | |
void | AWU_Cmd (FunctionalState NewState) |
Enable or disable the AWU peripheral. | |
void | AWU_DeInit (void) |
Deinitializes the AWU peripheral registers to their default reset values. | |
FlagStatus | AWU_GetFlagStatus (void) |
Returns status of the AWU peripheral flag. | |
void | AWU_IdleModeEnable (void) |
Configures AWU in Idle mode to reduce power consumption. | |
void | AWU_Init (AWU_Timebase_TypeDef AWU_TimeBase) |
Initializes the AWU peripheral according to the specified parameters. | |
void | AWU_LSICalibrationConfig (uint32_t LSIFreqHz) |
Update APR register with the measured LSI frequency. |
Function Documentation
void AWU_Cmd | ( | FunctionalState | NewState | ) |
Enable or disable the AWU peripheral.
Definition at line 112 of file stm8s_awu.c.
References AWU, AWU_CSR_AWUEN, and DISABLE.
void AWU_DeInit | ( | void | ) |
Deinitializes the AWU peripheral registers to their default reset values.
Definition at line 73 of file stm8s_awu.c.
References AWU, AWU_APR_RESET_VALUE, AWU_CSR_RESET_VALUE, and AWU_TBR_RESET_VALUE.
FlagStatus AWU_GetFlagStatus | ( | void | ) |
Returns status of the AWU peripheral flag.
Definition at line 183 of file stm8s_awu.c.
References AWU, AWU_CSR_AWUF, RESET, and SET.
void AWU_IdleModeEnable | ( | void | ) |
Configures AWU in Idle mode to reduce power consumption.
Definition at line 168 of file stm8s_awu.c.
References AWU, AWU_CSR_AWUEN, and AWU_TBR_AWUTB.
void AWU_Init | ( | AWU_Timebase_TypeDef | AWU_TimeBase | ) |
Initializes the AWU peripheral according to the specified parameters.
Definition at line 88 of file stm8s_awu.c.
References APR_Array, AWU, AWU_APR_APR, AWU_CSR_AWUEN, AWU_TBR_AWUTB, IS_AWU_TIMEBASE_OK, and TBR_Array.
void AWU_LSICalibrationConfig | ( | uint32_t | LSIFreqHz | ) |
Update APR register with the measured LSI frequency.
Definition at line 139 of file stm8s_awu.c.
References AWU, and IS_LSI_FREQUENCY_OK.