STM8L15x Standard Peripherals Drivers
|
Initialization and Configuration functions. More...
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. |
Detailed Description
Initialization and Configuration functions.
=============================================================================== Initialization and Configuration functions =============================================================================== This section provides functions allowing to: - Initialize and configure the Beeper frequency - Enable and Disable the Beeper output
Function Documentation
void BEEP_Cmd | ( | FunctionalState | NewState | ) |
Enable or disable the BEEP function.
- Note:
- Initialisation of BEEP and LS RC calibration must be done before.
Definition at line 124 of file stm8l15x_beep.c.
References BEEP, BEEP_CSR2_BEEPEN, DISABLE, and IS_FUNCTIONAL_STATE.
void BEEP_DeInit | ( | void | ) |
Deinitializes the BEEP peripheral registers to their default reset values.
Definition at line 86 of file stm8l15x_beep.c.
References BEEP, BEEP_CSR1_RESET_VALUE, and BEEP_CSR2_RESET_VALUE.
void BEEP_Init | ( | BEEP_Frequency_TypeDef | BEEP_Frequency | ) |
Initializes the BEEP function according to the specified parameters.
- Note:
- The LS RC calibration must be performed before calling this function.
Definition at line 99 of file stm8l15x_beep.c.
References BEEP, BEEP_CALIBRATION_DEFAULT, BEEP_CSR2_BEEPDIV, BEEP_CSR2_BEEPSEL, and IS_BEEP_FREQUENCY.