STM8L15x Standard Peripherals Drivers: RST

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

RST driver modules. More...

Modules

 RST_Exported_Types
 RST_Private_Functions

Defines

#define RST_CR_MASK   0xD0

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.
void RST_GPOutputEnable (void)
 Configures the reset pad as GP output.

Detailed Description

RST driver modules.


Define Documentation

#define RST_CR_MASK   0xD0

Enable the GPIO

Definition at line 59 of file stm8l15x_rst.c.

Referenced by RST_GPOutputEnable().


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.

void RST_GPOutputEnable ( void  )

Configures the reset pad as GP output.

Parameters:
None
Return values:
None

Definition at line 144 of file stm8l15x_rst.c.

References RST, and RST_CR_MASK.

STM8S Firmware Library: Overview

 

 

 

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