flash

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

<title>Interrupts and flags management functions</title>

Interrupts and flags management functions
[FLASH_Private_Functions]

Interrupts and flags management functions. More...

Functions

void FLASH_ITConfig (uint32_t FLASH_IT, FunctionalState NewState)
 Enables or disables the specified FLASH interrupts.
FlagStatus FLASH_GetFlagStatus (uint32_t FLASH_FLAG)
 Checks whether the specified FLASH flag is set or not.
void FLASH_ClearFlag (uint32_t FLASH_FLAG)
 Clears the FLASH's pending flags.
FLASH_Status FLASH_GetStatus (void)
 Returns the FLASH Status.
FLASH_Status FLASH_WaitForLastOperation2 (void)
 Waits for a FLASH operation to complete.

Detailed Description

Interrupts and flags management functions.

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

Function Documentation

void FLASH_ClearFlag ( uint32_t  FLASH_FLAG )

Clears the FLASH's pending flags.

Parameters:
FLASH_FLAG,:specifies the FLASH flags to clear. This parameter can be any combination of the following values:

  • FLASH_FLAG_EOP: FLASH End of Operation flag
  • FLASH_FLAG_OPERR: FLASH operation Error flag
  • FLASH_FLAG_WRPERR: FLASH Write protected error flag
  • FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag
  • FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag
  • FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag
  • FLASH_FLAG_RDERR: FLASH Read Protection error flag (STM32F42xx/43xxx and STM32F401xx/411xE devices)
Return values:
None

Definition at line 1517 of file stm32f4xx_flash.c.

FlagStatus FLASH_GetFlagStatus ( uint32_t  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_EOP: FLASH End of Operation flag
  • FLASH_FLAG_OPERR: FLASH operation Error flag
  • FLASH_FLAG_WRPERR: FLASH Write protected error flag
  • FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag
  • FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag
  • FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag
  • FLASH_FLAG_RDERR: FLASH (PCROP) Read Protection error flag (STM32F42xx/43xxx and STM32F401xx/411xE devices)
  • FLASH_FLAG_BSY: FLASH Busy flag
Return values:
Thenew state of FLASH_FLAG (SET or RESET).

Definition at line 1486 of file stm32f4xx_flash.c.

FLASH_Status FLASH_GetStatus ( void   )

Returns the FLASH Status.

Parameters:
None
Return values:
FLASHStatus: The returned value can be: FLASH_BUSY2, FLASH_ERROR_PROGRAM2, FLASH_ERROR_WRP2, FLASH_ERROR_RD2, FLASH_ERROR_OPERATION2 or FLASH_COMPLETE2.

Definition at line 1532 of file stm32f4xx_flash.c.

void FLASH_ITConfig ( uint32_t  FLASH_IT,
FunctionalState  NewState 
)

Enables or disables the specified FLASH interrupts.

Parameters:
FLASH_IT,:specifies the FLASH interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:

  • FLASH_IT_ERR: FLASH Error Interrupt
  • FLASH_IT_EOP: FLASH end of operation Interrupt
Return values:
None

Definition at line 1454 of file stm32f4xx_flash.c.

FLASH_Status FLASH_WaitForLastOperation2 ( void   )

Waits for a FLASH operation to complete.

Parameters:
None
Return values:
FLASHStatus: The returned value can be: FLASH_BUSY2, FLASH_ERROR_PROGRAM2, FLASH_ERROR_WRP2, FLASH_ERROR_OPERATION2 or FLASH_COMPLETE2.

Definition at line 1582 of file stm32f4xx_flash.c.