libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
f7/flash.h File Reference
Include dependency graph for f7/flash.h:

Go to the source code of this file.

Macros

#define FLASH_ACR_ARTRST   (1 << 11)
 
#define FLASH_ACR_ARTEN   (1 << 9)
 
#define FLASH_ACR_PRFTEN   (1 << 8)
 
#define FLASH_SR_ERSERR   (1 << 7)
 
#define FLASH_OPTCR_IWDG_STOP   (1 << 31)
 
#define FLASH_OPTCR_IWDG_STDBY   (1 << 30)
 
#define FLASH_OPTCR_NWRP_SHIFT   16
 
#define FLASH_OPTCR_NWRP_MASK   0xff
 
#define FLASH_OPTCR_RDP_SHIFT   8
 
#define FLASH_OPTCR_RDP_MASK   0xff
 
#define FLASH_OPTCR_IWDG_SW   (1 << 5)
 
#define FLASH_OPTCR_WWDG_SW   (1 << 4)
 
#define FLASH_OPTCR_OPTSTRT   (1 << 1)
 
#define FLASH_OPTCR_OPTLOCK   (1 << 0)
 
#define FLASH_OPTCR1_BOOT_ADD1_MASK   0xffff
 
#define FLASH_OPTCR1_BOOT_ADD1_SHIFT   16
 
#define FLASH_OPTCR1_BOOT_ADD0_MASK   0xffff
 
#define FLASH_OPTCR1_BOOT_ADD0_SHIFT   0
 

Functions

void flash_clear_erserr_flag (void)
 Clear the Erase Sequence Error Flag. More...
 
void flash_art_enable (void)
 Enable the ART Cache. More...
 
void flash_art_reset (void)
 Reset the ART Cache. More...