STM8L15x Standard Peripherals Drivers: Interrupts and flags management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Interrupts and flags management functions

Interrupts and flags management functions. More...

Functions

void CLK_ClearFlag (void)
 Clears the CSS LSE Flag.
void CLK_ClearITPendingBit (CLK_IT_TypeDef CLK_IT)
 Clears the CLK's interrupt pending bits.
FlagStatus CLK_GetFlagStatus (CLK_FLAG_TypeDef CLK_FLAG)
 Checks whether the specified CLK flag is set or not.
ITStatus CLK_GetITStatus (CLK_IT_TypeDef CLK_IT)
 Checks whether the specified CLK interrupt has occurred or not.
void CLK_ITConfig (CLK_IT_TypeDef CLK_IT, FunctionalState NewState)
 Enables or disables the specified CLK interrupts.

Detailed Description

Interrupts and flags management functions.

 ===============================================================================
                   Interrupts and flags management functions
 ===============================================================================  


Function Documentation

void CLK_ClearFlag ( void  )

Clears the CSS LSE Flag.

Parameters:
None
Return values:
None

Definition at line 1010 of file stm8l15x_clk.c.

References CSSLSE, and CSSLSE_CSR_CSSF.

void CLK_ClearITPendingBit ( CLK_IT_TypeDef  CLK_IT)

Clears the CLK's interrupt pending bits.

Parameters:
CLK_IT,:specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • CLK_IT_SWIF: Clock switch interrupt
  • CLK_IT_LSECSSF: LSE Clock security system detection interrupt
Return values:
None

Definition at line 1083 of file stm8l15x_clk.c.

References CLK, CLK_SWCR_SWIF, CSSLSE, CSSLSE_CSR_CSSF, and IS_CLK_CLEAR_IT.

FlagStatus CLK_GetFlagStatus ( CLK_FLAG_TypeDef  CLK_FLAG)

Checks whether the specified CLK flag is set or not.

Parameters:
CLK_FLAG,:specifies the flag to check. This parameter can be one of the following values:
  • CLK_FLAG_LSIRDY: LSI oscillator clock ready
  • CLK_FLAG_HSIRDY: HSI oscillator clock ready
  • CLK_FLAG_HSERDY: HSE oscillator clock ready
  • CLK_FLAG_SWBSY: Switch busy
  • CLK_FLAG_CSSD: Clock security system detection
  • CLK_FLAG_AUX: Auxiliary oscillator connected to master clock
  • CLK_FLAG_LSERDY: LSE oscillator clock ready
  • CLK_FLAG_CCOBSY: Configurable clock output busy
  • CLK_FLAG_RTCSWBSY: RTC clock busy in switch
  • CLK_FLAG_EEREADY: Flash program memory and Data EEPROM ready
  • CLK_FLAG_EEBUSY: Flash program memory and Data EEPROM busy
  • CLK_FLAG_LSEPD: LSE power-down
  • CLK_FLAG_LSIPD: LSI power-down
  • CLK_FLAG_HSEPD: HSE power-down
  • CLK_FLAG_HSIPD: HSI power-down
  • CLK_FLAG_REGREADY: REGREADY
  • CLK_FLAG_BEEPSWBSY: BEEP clock busy in switch
  • CLK_FLAG_LSECSSF: CSS on LSE detection
  • CLK_FLAG_RTCCLKSWF: RTCCLK switch completed on LSE failure
Return values:
Thenew state of CLK_FLAG (SET or RESET).

Definition at line 939 of file stm8l15x_clk.c.

References CLK, CSSLSE, IS_CLK_FLAGS, RESET, and SET.

ITStatus CLK_GetITStatus ( CLK_IT_TypeDef  CLK_IT)

Checks whether the specified CLK interrupt has occurred or not.

Parameters:
CLK_IT,:specifies the CLK interrupt source to check. This parameter can be one of the following values:
  • CLK_IT_SWIF: LSI ready interrupt
  • CLK_IT_LSECSSF: LSE ready interrupt
  • CLK_IT_CSSD: HSI ready interrupt
Return values:
Thenew state of CLK_IT (SET or RESET).

Definition at line 1026 of file stm8l15x_clk.c.

References CLK, CLK_IT_LSECSSF, CLK_IT_SWIF, CSSLSE, IS_CLK_IT, RESET, and SET.

void CLK_ITConfig ( CLK_IT_TypeDef  CLK_IT,
FunctionalState  NewState 
)

Enables or disables the specified CLK interrupts.

Parameters:
CLK_IT,:specifies the CLK interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • CLK_IT_CSSD: Clock security system detection interrupt
  • CLK_IT_SWIF: Clock switch interrupt
  • CLK_IT_LSECSSF: LSE Clock security system detection interrupt
NewState,:new state of the specified CLK interrupts. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 869 of file stm8l15x_clk.c.

References CLK, CLK_CSSR_CSSDIE, CLK_IT_LSECSSF, CLK_IT_SWIF, CLK_SWCR_SWIEN, CSSLSE, CSSLSE_CSR_CSSIE, DISABLE, IS_CLK_IT, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

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