From cc298608cc0d83dfbcce87c7c805f5107fecd7a6 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 8 May 2016 09:14:40 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9449 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/lib/peripherals/flash/hal_flash.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'os/hal/lib/peripherals/flash') diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index 4c497e508..c3559a732 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -69,8 +69,10 @@ typedef enum { FLASH_PARAMETER_ERROR = 1, /* Error in a function parameter. */ FLASH_ADDRESS_ERROR = 2, /* Operation overlaps invalid addresses. */ FLASH_ECC_ERROR = 3, /* ECC error during read operation. */ - FLASH_VERIFY_FAILURE = 4, /* Write or erase operation failed. */ - FLASH_HW_FAILURE = 5 /* Controller or communication error. */ + FLASH_PROGRAM_FAILURE = 4, /* Program operation failed. */ + FLASH_ERASE_FAILURE = 5, /* Erase operation failed. */ + FLASH_VERIFY_FAILURE = 6, /* Verify operation failed. */ + FLASH_HW_FAILURE = 7 /* Controller or communication error. */ } flash_error_t; /** -- cgit v1.2.3