|
STM8S/A Standard Peripherals Drivers
|
Functions | |
| void | BEEP_Cmd (FunctionalState NewState) |
| Enable or disable the BEEP function. | |
| void | BEEP_DeInit (void) |
| Deinitializes the BEEP peripheral registers to their default reset values. | |
| void | BEEP_Init (BEEP_Frequency_TypeDef BEEP_Frequency) |
| Initializes the BEEP function according to the specified parameters. | |
| void | BEEP_LSICalibrationConfig (uint32_t LSIFreqHz) |
| Update CSR register with the measured LSI frequency. | |
Function Documentation
| void BEEP_Cmd | ( | FunctionalState | NewState | ) |
Enable or disable the BEEP function.
Definition at line 91 of file stm8s_beep.c.
References BEEP, BEEP_CSR_BEEPEN, and DISABLE.
| void BEEP_DeInit | ( | void | ) |
Deinitializes the BEEP peripheral registers to their default reset values.
Definition at line 54 of file stm8s_beep.c.
References BEEP, and BEEP_CSR_RESET_VALUE.
| void BEEP_Init | ( | BEEP_Frequency_TypeDef | BEEP_Frequency | ) |
Initializes the BEEP function according to the specified parameters.
Definition at line 67 of file stm8s_beep.c.
References BEEP, BEEP_CALIBRATION_DEFAULT, BEEP_CSR_BEEPDIV, BEEP_CSR_BEEPSEL, and IS_BEEP_FREQUENCY_OK.
| void BEEP_LSICalibrationConfig | ( | uint32_t | LSIFreqHz | ) |
Update CSR register with the measured LSI frequency.
Definition at line 118 of file stm8s_beep.c.
References BEEP, BEEP_CSR_BEEPDIV, and IS_LSI_FREQUENCY_OK.