mirror of https://github.com/rusefi/wideband.git
flash api
This commit is contained in:
parent
d3a9f34eaf
commit
8ab95e18c1
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue