flash api

This commit is contained in:
Matthew Kennedy 2020-12-09 01:03:14 -08:00
parent d3a9f34eaf
commit 8ab95e18c1
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ static void flashWriteData(flashaddr_t address, const flashdata_t data) {
FLASH->CR &= ~FLASH_CR_PG;
}
void Flash::Write(flashaddr_t address, const char* buffer, size_t size) {
void Flash::Write(flashaddr_t address, const uint8_t* buffer, size_t size) {
/* Unlock flash for write access */
flashUnlock();

View File

@ -10,5 +10,5 @@ using flashdata_t = uint16_t;
struct Flash {
static void ErasePage(uint8_t pageIndex);
static void Write(flashaddr_t address, const char* buffer, size_t size);
static void Write(flashaddr_t address, const uint8_t* buffer, size_t size);
};