DIY Logging Volt/Ampmeter

macros to handle FLASH interrupts More...

Macros

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

Detailed Description

macros to handle FLASH interrupts

Macro Definition Documentation

◆ __HAL_FLASH_CLEAR_FLAG

#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
<strong>FLAG</strong>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.

◆ __HAL_FLASH_DISABLE_IT

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

Disable the specified FLASH interrupt.

Parameters
<strong>INTERRUPT</strong>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.

◆ __HAL_FLASH_ENABLE_IT

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

Enable the specified FLASH interrupt.

Parameters
<strong>INTERRUPT</strong>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.

◆ __HAL_FLASH_GET_FLAG

#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
<strong>FLAG</strong>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.

FLASH_FLAG_OPTVERR
#define FLASH_FLAG_OPTVERR
Definition: stm32f1xx_hal_flash_ex.h:536
FLASH
#define FLASH
Definition: stm32f103xb.h:686
FLASH_OBR_OPTERR
#define FLASH_OBR_OPTERR
Definition: stm32f103xb.h:9771