STM32F103xB HAL User Manual
|
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. |
macros to handle FLASH interrupts
#define __HAL_FLASH_CLEAR_FLAG | ( | __FLAG__ | ) |
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.
__FLAG__ | specifies the FLASH flags to clear. This parameter can be any combination of the following 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.
__INTERRUPT__ | FLASH interrupt This parameter can be any combination of the following 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.
__INTERRUPT__ | FLASH interrupt This parameter can be any combination of the following 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__ | ) |
(((__FLAG__) == FLASH_FLAG_OPTVERR) ? \ (FLASH->OBR & FLASH_OBR_OPTERR) : \ (FLASH->SR & (__FLAG__)))
Get the specified FLASH flag status.
__FLAG__ | specifies the FLASH flag to check. This parameter can be one of the following values:
|
The | new 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().