129 MMIO32(address) = (uint32_t)data;
130 MMIO32(address+4) = (uint32_t)(data >> 32);
149 for (uint32_t i = 0; i < len; i += 8) {
186 FLASH_CR &= ~FLASH_CR_MER1 & ~FLASH_CR_MER2;
#define FLASH_CR_PNB_SHIFT
#define FLASH_CR_PNB_MASK
void flash_program_option_bytes(uint32_t data)
Program the Option Bytes This performs all operations necessary to program the option bytes.
void flash_erase_page(uint32_t page)
Erase a page of FLASH.
void flash_lock_option_bytes(void)
Lock the Option Byte Access This disables write access to the option bytes.
void flash_unlock_option_bytes(void)
Unlock the Option Byte Access.
void flash_wait_for_last_operation(void)
Wait until Last Operation has Ended This loops indefinitely until an operation (write or erase) has c...
void flash_clear_pgaerr_flag(void)
Clear the Programming Alignment Error Flag.
void flash_clear_pgserr_flag(void)
Clear the Programming Sequence Error Flag This flag is set when incorrect programming configuration h...
void flash_clear_eop_flag(void)
Clear the End of OPeration flag.
void flash_clear_status_flags(void)
Clear All Status Flags Program error, end of operation, write protect error, busy.
void flash_program(uint32_t address, uint8_t *data, uint32_t len)
Program a Data Block to FLASH This programs an arbitrary length data block to FLASH memory.
void flash_clear_size_flag(void)
Clear programming size error flag.
void flash_program_double_word(uint32_t address, uint64_t data)
Program a 64 bit word to FLASH.
void flash_clear_progerr_flag(void)
Clear the Programming Error Status Flag.
void flash_clear_wrperr_flag(void)
Clear the Write Protect Error Flag.
void flash_erase_all_pages(void)
Erase All FLASH This performs all operations necessary to erase all sectors in the FLASH memory.