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

FlagStatus FLASH_GetFlagStatus (FLASH_FLAG_TypeDef FLASH_FLAG)
 Checks whether the specified FLASH flag is set or not.
void FLASH_ITConfig (FunctionalState NewState)
 Enables or Disables the Flash interrupt mode.

Detailed Description

Interrupts and flags management functions.

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


Function Documentation

FlagStatus FLASH_GetFlagStatus ( FLASH_FLAG_TypeDef  FLASH_FLAG)

Checks whether the specified FLASH flag is set or not.

Parameters:
FLASH_FLAG: specifies the Flash Flag to check. This parameter can be one of the following values:
  • FLASH_FLAG_HVOFF: End of high voltage
  • FLASH_FLAG_DUL: Data EEPROM unlocked
  • FLASH_FLAG_EOP: End of programming (write or erase operation)
  • FLASH_FLAG_PUL: Flash Program memory unlocked
  • FLASH_FLAG_WR_PG_DIS: Write attempted to protected page
Return values:
Indicatesthe state of the Flash_FLAG. This parameter can be SET or RESET

Definition at line 571 of file stm8l15x_flash.c.

References FLASH, IS_FLASH_FLAGS, RESET, and SET.

void FLASH_ITConfig ( FunctionalState  NewState)

Enables or Disables the Flash interrupt mode.

Parameters:
NewState: The new state of the flash interrupt mode This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 541 of file stm8l15x_flash.c.

References DISABLE, FLASH, FLASH_CR1_IE, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

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