55 memcpy(dest, flash_loc, len);
66 bool flash_write(
void const *flash_loc,
void const *data, uint8_t len)
70 uint32_t
const *dataPtr =
static_cast<uint32_t
const *
>(data);
71 uint32_t flash_address=
reinterpret_cast<const uint32_t
>(flash_loc);
72 for (uint32_t
i=0;
i<len;
i+=4)
bool flash_write(void const *flash_loc, void const *data, uint8_t len)
void FLASH_Unlock(void)
Unlocks the FLASH control register access.
bool flash_read(void *flash_loc, void *dest, uint8_t len)
bool eeprom_write(const void *src, uint8_t len)
bool eeprom_read(void *dest, uint8_t len)
#define FLASH_SECTOR11_START
FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data)
Programs a word at a specified address.
FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange)
Erases a specified FLASH Sector.