git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9420 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-05-05 09:51:44 +00:00
parent 4c093804c0
commit e7e7435ed8
1 changed files with 11 additions and 1 deletions

View File

@ -33,7 +33,7 @@
* @name Flash attributes * @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_MEMORY_MAPPED 0x00000002
#define FLASH_ATTR_REWRITABLE 0x00000004 #define FLASH_ATTR_REWRITABLE 0x00000004
/** @} */ /** @} */
@ -96,6 +96,16 @@ typedef struct {
_base_flash_data _base_flash_data
} BaseFlash; } 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. * @brief Flash sector descriptor.
*/ */