STM8L15x Standard Peripherals Drivers: CSS on LSE configuration functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

CSS on LSE configuration functions

CSS on LSE configuration functions. More...

Functions

void CLK_LSEClockSecuritySystemEnable (void)
 Enables the clock CSS on LSE.
void CLK_RTCCLKSwitchOnLSEFailureEnable (void)
 Enables RTC clock switch to LSI in case of LSE failure.

Detailed Description

CSS on LSE configuration functions.

 ===============================================================================
                        CSS on LSE configuration functions
 ===============================================================================  

  This section provides functions allowing to configure the CSS on LSE capability. 
  
  1. The LSE crystal clock source failures can be monitored when used as RTC clock
     by the mean of the LSI oscillator.
     
  2. The CSS on LSE is a feature implemented externally to RTC peripheral and though 
     has no impact the clock controller registers.

  3. To enable the CSS on LSE you can use CLK_LSEClockSecuritySystemEnable() function
     
  4. To configure the action to perform at RTC clock failure you can use 
     CLK_RTCCLKSwitchOnLSEFailureEnable() function that allows to switch the RTC clock
     from LSE to LSI.


Function Documentation

void CLK_LSEClockSecuritySystemEnable ( void  )

Enables the clock CSS on LSE.

Note:
Once Enabled, only POR can Disable it.
Parameters:
None
Return values:
None

Definition at line 759 of file stm8l15x_clk.c.

References CSSLSE, and CSSLSE_CSR_CSSEN.

void CLK_RTCCLKSwitchOnLSEFailureEnable ( void  )

Enables RTC clock switch to LSI in case of LSE failure.

Note:
Once Enabled, only POR can Disable it.
Parameters:
None
Return values:
None

Definition at line 771 of file stm8l15x_clk.c.

References CSSLSE, and CSSLSE_CSR_SWITCHEN.

STM8S Firmware Library: Overview

 

 

 

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