From: Nathael Pajani Date: Tue, 28 Mar 2017 13:24:45 +0000 (+0200) Subject: Function rename in iap support code. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=a54e6824b2b7c105359331327ca9380746da6e09;p=soft%2Flpc122x%2Fcore Function rename in iap support code. --- diff --git a/core/iap.c b/core/iap.c index 3313fba..ff789bd 100644 --- a/core/iap.c +++ b/core/iap.c @@ -55,7 +55,7 @@ static uint32_t get_sector_number(uint32_t addr) /* Erase one sector, given a flash address * return 0 on success. */ -int flash_hal_erase_sector(uint32_t addr) +int flash_erase_sector(uint32_t addr) { uint32_t sector = get_sector_number(addr); int ret = 0; @@ -70,7 +70,7 @@ int flash_hal_erase_sector(uint32_t addr) } /* Flash a binary image chunk to a sector. */ -int flash_hal_program_page(uint32_t addr, uint32_t size, unsigned char *buf) +int flash_program_page(uint32_t addr, uint32_t size, unsigned char *buf) { uint32_t sector = 0; int ret = 0; diff --git a/include/core/iap.h b/include/core/iap.h index ae760ce..12869f3 100644 --- a/include/core/iap.h +++ b/include/core/iap.h @@ -150,13 +150,13 @@ void relocate_vector_table(void); /* Erase one sector, given a flash address * return 0 on success. */ -int flash_hal_erase_sector(uint32_t addr); +int flash_erase_sector(uint32_t addr); /* Flash a binary image chunk to flash. * Flash must have been erased first. * return 0 on success. */ -int flash_hal_program_page (uint32_t addr, uint32_t sz, unsigned char *buf); +int flash_program_page (uint32_t addr, uint32_t sz, unsigned char *buf); #endif /* CORE_IAP_H */