STM8L15x Standard Peripherals Drivers: Flag management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Flag management functions

Flag management functions. More...

Functions

void RST_ClearFlag (RST_FLAG_TypeDef RST_Flag)
 Clears the specified RST flag.
FlagStatus RST_GetFlagStatus (RST_FLAG_TypeDef RST_Flag)
 Checks whether the specified RST flag is set or not.

Detailed Description

Flag management functions.

 ===============================================================================
                       Flag management functions
 ===============================================================================  


Function Documentation

void RST_ClearFlag ( RST_FLAG_TypeDef  RST_Flag)

Clears the specified RST flag.

Parameters:
RST_Flag: specify the reset flag to check. This parameter can be one of the following values:
  • RST_FLAG_PORF: POR reset flag
  • RST_FLAG_SWIMF: SWIM reset flag
  • RST_FLAG_ILLOPF: Illegal opcode reset flag
  • RST_FLAG_IWDGF: Independent watchdog reset flag
  • RST_FLAG_WWDGF: Window watchdog reset flag
  • RST_FLAG_BORF: BOR reset flag
Return values:
None

Definition at line 115 of file stm8l15x_rst.c.

References IS_RST_FLAG, and RST.

FlagStatus RST_GetFlagStatus ( RST_FLAG_TypeDef  RST_Flag)

Checks whether the specified RST flag is set or not.

Parameters:
RST_Flag: specify the reset flag to check. This parameter can be one of the following values:
  • RST_FLAG_PORF: POR reset flag
  • RST_FLAG_SWIMF: SWIM reset flag
  • RST_FLAG_ILLOPF: Illegal opcode reset flag
  • RST_FLAG_IWDGF: Independent watchdog reset flag
  • RST_FLAG_WWDGF: Window watchdog reset flag
  • RST_FLAG_BORF: BOR reset flag
Return values:
Thenew state of RST_Flag (SET or RESET).

Definition at line 93 of file stm8l15x_rst.c.

References IS_RST_FLAG, and RST.

STM8S Firmware Library: Overview

 

 

 

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