|
STM32L443xx HAL User Manual
|
macros to handle FLASH interrupts More...
Defines | |
| #define | __HAL_FLASH_ENABLE_IT(__INTERRUPT__) |
| Enable the specified FLASH interrupt. | |
| #define | __HAL_FLASH_DISABLE_IT(__INTERRUPT__) |
| Disable the specified FLASH interrupt. | |
| #define | __HAL_FLASH_GET_FLAG(__FLAG__) |
| Check whether the specified FLASH flag is set or not. | |
| #define | __HAL_FLASH_CLEAR_FLAG(__FLAG__) |
| Clear the FLASH's pending flags. | |
macros to handle FLASH interrupts
| #define __HAL_FLASH_CLEAR_FLAG | ( | __FLAG__ | ) |
do { if(((__FLAG__) & FLASH_FLAG_ECCR_ERRORS) != 0U) { SET_BIT(FLASH->ECCR, ((__FLAG__) & FLASH_FLAG_ECCR_ERRORS)); }\ if(((__FLAG__) & ~(FLASH_FLAG_ECCR_ERRORS)) != 0U) { WRITE_REG(FLASH->SR, ((__FLAG__) & ~(FLASH_FLAG_ECCR_ERRORS))); }\ } while(0)
Clear the FLASH's pending flags.
| __FLAG__ | specifies the FLASH flags to clear. This parameter can be any combination of the following values:
|
| None |
Definition at line 762 of file stm32l4xx_hal_flash.h.
Referenced by FLASH_WaitForLastOperation(), and HAL_FLASH_IRQHandler().
| #define __HAL_FLASH_DISABLE_IT | ( | __INTERRUPT__ | ) |
do { if(((__INTERRUPT__) & FLASH_IT_ECCC) != 0U) { CLEAR_BIT(FLASH->ECCR, FLASH_ECCR_ECCIE); }\ if(((__INTERRUPT__) & (~FLASH_IT_ECCC)) != 0U) { CLEAR_BIT(FLASH->CR, ((__INTERRUPT__) & (~FLASH_IT_ECCC))); }\ } while(0)
Disable the specified FLASH interrupt.
| __INTERRUPT__ | FLASH interrupt This parameter can be any combination of the following values:
|
| none |
Definition at line 713 of file stm32l4xx_hal_flash.h.
Referenced by HAL_FLASH_IRQHandler().
| #define __HAL_FLASH_ENABLE_IT | ( | __INTERRUPT__ | ) |
do { if(((__INTERRUPT__) & FLASH_IT_ECCC) != 0U) { SET_BIT(FLASH->ECCR, FLASH_ECCR_ECCIE); }\ if(((__INTERRUPT__) & (~FLASH_IT_ECCC)) != 0U) { SET_BIT(FLASH->CR, ((__INTERRUPT__) & (~FLASH_IT_ECCC))); }\ } while(0)
Enable the specified FLASH interrupt.
| __INTERRUPT__ | FLASH interrupt This parameter can be any combination of the following values:
|
| none |
Definition at line 699 of file stm32l4xx_hal_flash.h.
Referenced by HAL_FLASH_Program_IT(), and HAL_FLASHEx_Erase_IT().
| #define __HAL_FLASH_GET_FLAG | ( | __FLAG__ | ) |
((((__FLAG__) & FLASH_FLAG_ECCR_ERRORS) != 0U) ? \ (READ_BIT(FLASH->ECCR, (__FLAG__)) != 0U) : \ (READ_BIT(FLASH->SR, (__FLAG__)) != 0U))
Check whether the specified FLASH flag is set or not.
| __FLAG__ | specifies the FLASH flag to check. This parameter can be one of the following values:
|
| The | new state of FLASH_FLAG (SET or RESET). |
Definition at line 738 of file stm32l4xx_hal_flash.h.
Referenced by FLASH_WaitForLastOperation(), and HAL_FLASH_IRQHandler().
1.7.6.1