110__attribute__ ((long_call, section (
".ramtext")))
157 for (i = 0; i < length_in_words; i++) {
158 MMIO32(address + (i *
sizeof(uint32_t))) = *(data+i);
#define FLASH_PRGKEYR_PRGKEY2
#define FLASH_PDKEYR_PDKEY2
#define FLASH_PDKEYR_PDKEY1
#define FLASH_PECR_OPTLOCK
#define FLASH_PEKEYR_PEKEY1
#define FLASH_PECR_PELOCK
#define FLASH_PRGKEYR_PRGKEY1
#define FLASH_PEKEYR_PEKEY2
#define FLASH_PECR_PRGLOCK
#define FLASH_HALF_PAGE_SIZE
void flash_erase_page(uint32_t page_address)
Erase a page in flash.
void flash_lock_pecr(void)
void eeprom_program_words(uint32_t address, uint32_t *data, int length_in_words)
Write a block of words to eeprom.
void flash_unlock_progmem(void)
Unlock program memory itself.
void flash_unlock_acr(void)
Unlock RUN_PD bit from FLASH_ACR register.
void flash_unlock_pecr(void)
Unlock primary access to the flash control/erase block You must call this before using any of the low...
void flash_lock_option_bytes(void)
void flash_unlock(void)
Unlock all segments of flash.
void flash_unlock_option_bytes(void)
Unlock the Option Byte Access.
void flash_lock_progmem(void)
void flash_lock(void)
Lock all segments of flash.
void eeprom_program_word(uint32_t address, uint32_t data)
Write a word to eeprom.
void flash_program_half_page(uint32_t *dst, void *buf)
Write a half page from buf to dst.