diff --git a/src/flash.c b/src/flash.c index 426ef6c..f03de28 100644 --- a/src/flash.c +++ b/src/flash.c @@ -72,7 +72,7 @@ void flash_flush(void) _fl_addr = NO_CACHE; } -void flash_write (uint32_t dst, const uint8_t *src, int len) +void flash_write (uint32_t dst, const void *src, int len) { uint32_t newAddr = dst & ~(FLASH_PAGE_SIZE - 1); diff --git a/src/flash.h b/src/flash.h index a42772b..1459d4b 100644 --- a/src/flash.h +++ b/src/flash.h @@ -47,7 +47,7 @@ #endif //void flash_erase(uint32_t page_addr); -void flash_write(uint32_t dst, const uint8_t *src, int len); +void flash_write(uint32_t dst, const void *src, int len); void flash_flush(void);