macros to handle FLASH interrupts
More...
macros to handle FLASH interrupts
◆ __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
-
◆ __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
-
◆ __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
-
◆ __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
-
The | new state of FLAG (SET or RESET). |