diff options
Diffstat (limited to 'os/hal/lib')
-rw-r--r-- | os/hal/lib/peripherals/flash/hal_flash.h | 10 |
1 files changed, 5 insertions, 5 deletions
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.
|