My Project
Loading...
Searching...
No Matches

macros to handle FLASH interrupts More...

Macros

#define __HAL_FLASH_ENABLE_IT(__INTERRUPT__)   SET_BIT((FLASH->CR), (__INTERRUPT__))
 Enable the specified FLASH interrupt.
 
#define __HAL_FLASH_DISABLE_IT(__INTERRUPT__)   CLEAR_BIT((FLASH->CR), (uint32_t)(__INTERRUPT__))
 Disable the specified FLASH interrupt.
 
#define __HAL_FLASH_GET_FLAG(__FLAG__)   (((FLASH->SR) & (__FLAG__)) == (__FLAG__))
 Get the specified FLASH flag status.
 
#define __HAL_FLASH_CLEAR_FLAG(__FLAG__)   ((FLASH->SR) = (__FLAG__))
 Clear the specified FLASH flag.
 

Detailed Description

macros to handle FLASH interrupts

Macro Definition Documentation

◆ __HAL_FLASH_CLEAR_FLAG

#define __HAL_FLASH_CLEAR_FLAG (   __FLAG__)    ((FLASH->SR) = (__FLAG__))

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

◆ __HAL_FLASH_DISABLE_IT

#define __HAL_FLASH_DISABLE_IT (   __INTERRUPT__)    CLEAR_BIT((FLASH->CR), (uint32_t)(__INTERRUPT__))

Disable the specified FLASH interrupt.

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

◆ __HAL_FLASH_ENABLE_IT

#define __HAL_FLASH_ENABLE_IT (   __INTERRUPT__)    SET_BIT((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

◆ __HAL_FLASH_GET_FLAG

#define __HAL_FLASH_GET_FLAG (   __FLAG__)    (((FLASH->SR) & (__FLAG__)) == (__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).