From e7e7435ed86aa2dbd86817c9441d6f9101a0a71b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 5 May 2016 09:51:44 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9420 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/lib/peripherals/flash/hal_flash.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'os') diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index 17ada6e6e..ceddbc00a 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -33,7 +33,7 @@ * @name Flash attributes * @{ */ -#define FLASH_ATTR_ERASED_ONE 0x00000001 +#define FLASH_ATTR_ERASED_IS_ONE 0x00000001 #define FLASH_ATTR_MEMORY_MAPPED 0x00000002 #define FLASH_ATTR_REWRITABLE 0x00000004 /** @} */ @@ -96,6 +96,16 @@ typedef struct { _base_flash_data } BaseFlash; +/** + * @brief Type of a flash error code. + */ +typedef enum { + FLASH_NO_ERROR = 0, + FLASH_PARAMETER_ERROR = 1, + FLASH_VERIFY_FAILURE = 2, + FLASH_HW_FAILURE = 3 +} flash_error_t; + /** * @brief Flash sector descriptor. */ -- cgit v1.2.3