From a54e6824b2b7c105359331327ca9380746da6e09 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Tue, 28 Mar 2017 15:24:45 +0200 Subject: [PATCH] Function rename in iap support code. --- core/iap.c | 4 ++-- include/core/iap.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.43.0