From eede81d5622ea3e3712a4b5dc76b8d7bbee588e5 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 8 May 2016 17:43:06 +0000 Subject: N25Q128 driver complete, to be tested. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9452 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/lib/peripherals/flash/hal_flash.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'os/hal') diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index b3c47b377..3544b328f 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -146,9 +146,9 @@ typedef struct { flash_sector_t sector, \ flash_sector_t n); \ /* Erase single sector.*/ \ - flash_error_t (*are_sectors_erased)(void *instance, \ - flash_sector_t sector, \ - flash_sector_t n); \ + flash_error_t (*verify_erase)(void *instance, \ + flash_sector_t sector, \ + flash_sector_t n); \ /* Write operation.*/ \ flash_error_t (*program)(void *instance, flash_address_t addr, \ const uint8_t *pp, size_t n); \ @@ -241,8 +241,8 @@ typedef struct { * * @api */ -#define flashAreSectorsErased(ip, sector, n) \ - (ip)->vmt_baseflash->are_sectors_erased(ip, sector, n) +#define flashVerifyErase(ip, sector, n) \ + (ip)->vmt_baseflash->verify_erase(ip, sector, n) /** * @brief Write operation. -- cgit v1.2.3