43#ifndef LIBOPENCM3_FLASH_H
44#define LIBOPENCM3_FLASH_H
57#define FLASH_ACR_ARTRST (1 << 11)
58#define FLASH_ACR_ARTEN (1 << 9)
59#define FLASH_ACR_PRFTEN (1 << 8)
62#define FLASH_SR_ERSERR (1 << 7)
66#define FLASH_OPTCR_IWDG_STOP (1 << 31)
67#define FLASH_OPTCR_IWDG_STDBY (1 << 30)
69#define FLASH_OPTCR_NWRP_SHIFT 16
70#define FLASH_OPTCR_NWRP_MASK 0xff
72#define FLASH_OPTCR_RDP_SHIFT 8
73#define FLASH_OPTCR_RDP_MASK 0xff
75#define FLASH_OPTCR_IWDG_SW (1 << 5)
76#define FLASH_OPTCR_WWDG_SW (1 << 4)
78#define FLASH_OPTCR_OPTSTRT (1 << 1)
79#define FLASH_OPTCR_OPTLOCK (1 << 0)
82#define FLASH_OPTCR1_BOOT_ADD1_MASK 0xffff
83#define FLASH_OPTCR1_BOOT_ADD1_SHIFT 16
84#define FLASH_OPTCR1_BOOT_ADD0_MASK 0xffff
85#define FLASH_OPTCR1_BOOT_ADD0_SHIFT 0
void flash_art_reset(void)
Reset the ART Cache.
void flash_art_enable(void)
Enable the ART Cache.
void flash_clear_erserr_flag(void)
Clear the Erase Sequence Error Flag.