This commit is contained in:
hathach 2018-08-11 00:39:23 +07:00
parent 433523b28a
commit 4846bde987
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void flash_flush(void)
_fl_addr = NO_CACHE; _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); uint32_t newAddr = dst & ~(FLASH_PAGE_SIZE - 1);

View File

@ -47,7 +47,7 @@
#endif #endif
//void flash_erase(uint32_t page_addr); //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); void flash_flush(void);