STM32F103xB HAL User Manual
Defines
Interrupt
FLASHEx Exported Macros

macros to handle FLASH interrupts More...

Defines

#define __HAL_FLASH_ENABLE_IT(__INTERRUPT__)   (FLASH->CR |= (__INTERRUPT__))
 Enable the specified FLASH interrupt.
#define __HAL_FLASH_DISABLE_IT(__INTERRUPT__)   (FLASH->CR &= ~(__INTERRUPT__))
 Disable the specified FLASH interrupt.
#define __HAL_FLASH_GET_FLAG(__FLAG__)
 Get the specified FLASH flag status.
#define __HAL_FLASH_CLEAR_FLAG(__FLAG__)
 Clear the specified FLASH flag.

Detailed Description

macros to handle FLASH interrupts


Define Documentation

#define __HAL_FLASH_CLEAR_FLAG (   __FLAG__)
Value:
do { \
                          /* Clear FLASH_FLAG_OPTVERR flag */ \
                          if ((__FLAG__) == FLASH_FLAG_OPTVERR) \
                          { \
                            CLEAR_BIT(FLASH->OBR, FLASH_OBR_OPTERR); \
                          } \
                          else { \
                            /* Clear Flag in Bank1 */ \
                            FLASH->SR  = (__FLAG__); \
                          } \
                    } while(0U)

Clear the specified FLASH flag.

Parameters:
__FLAG__specifies the FLASH flags to clear. This parameter can be any combination of the following values:
Return values:
none

Definition at line 719 of file stm32f1xx_hal_flash_ex.h.

Referenced by FLASH_SetErrorCode(), FLASH_WaitForLastOperation(), and HAL_FLASH_IRQHandler().

#define __HAL_FLASH_DISABLE_IT (   __INTERRUPT__)    (FLASH->CR &= ~(__INTERRUPT__))

Disable the specified FLASH interrupt.

Parameters:
__INTERRUPT__FLASH interrupt This parameter can be any combination of the following values:
Return values:
none

Definition at line 693 of file stm32f1xx_hal_flash_ex.h.

Referenced by HAL_FLASH_IRQHandler().

#define __HAL_FLASH_ENABLE_IT (   __INTERRUPT__)    (FLASH->CR |= (__INTERRUPT__))

Enable the specified FLASH interrupt.

Parameters:
__INTERRUPT__FLASH interrupt This parameter can be any combination of the following values:
Return values:
none

Definition at line 683 of file stm32f1xx_hal_flash_ex.h.

Referenced by HAL_FLASH_Program_IT(), and HAL_FLASHEx_Erase_IT().

#define __HAL_FLASH_GET_FLAG (   __FLAG__)
Value:
(((__FLAG__) == FLASH_FLAG_OPTVERR) ? \
                                            (FLASH->OBR & FLASH_OBR_OPTERR) : \
                                            (FLASH->SR & (__FLAG__)))

Get the specified FLASH flag status.

Parameters:
__FLAG__specifies the FLASH flag to check. This parameter can be one of the following values:
Return values:
Thenew state of __FLAG__ (SET or RESET).

Definition at line 706 of file stm32f1xx_hal_flash_ex.h.

Referenced by FLASH_SetErrorCode(), FLASH_WaitForLastOperation(), and HAL_FLASH_IRQHandler().