From 4846bde987eecb3e3accc80f3ad1b5f36ebd082f Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 11 Aug 2018 00:39:23 +0700 Subject: [PATCH] clean up --- src/flash.c | 2 +- src/flash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);