STM8L15x Standard Peripherals Drivers: Initialization and Configuration functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Initialization and Configuration functions

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.
Parameters:
NewStateIndicates the new state of the BEEP function.
Return values:
None

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.

Parameters:
None
Return values:
None

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.
Parameters:
BEEP_FrequencyFrequency selection. This parameter can be one of the values of BEEP_Frequency_TypeDef.
Return values:
None

Definition at line 99 of file stm8l15x_beep.c.

References BEEP, BEEP_CALIBRATION_DEFAULT, BEEP_CSR2_BEEPDIV, BEEP_CSR2_BEEPSEL, and IS_BEEP_FREQUENCY.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com