From 704df8c3abc6c43ec2f36e98d066c2f906a15b3a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 19 May 2019 12:51:33 +0000 Subject: [PATCH] Added FLASH_ERROR_UNIMPLEMENTED to errors. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12810 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/include/hal_flash.h | 3 ++- os/hal/ports/STM32/STM32F1xx/hal_efl_lld.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/os/hal/include/hal_flash.h b/os/hal/include/hal_flash.h index af814bb4f..ba90a765e 100644 --- a/os/hal/include/hal_flash.h +++ b/os/hal/include/hal_flash.h @@ -103,7 +103,8 @@ typedef enum { FLASH_ERROR_PROGRAM = 3, /* Program operation failed. */ FLASH_ERROR_ERASE = 4, /* Erase operation failed. */ FLASH_ERROR_VERIFY = 5, /* Verify operation failed. */ - FLASH_ERROR_HW_FAILURE = 6 /* Controller or communication error. */ + FLASH_ERROR_HW_FAILURE = 6, /* Controller or communication error. */ + FLASH_ERROR_UNIMPLEMENTED = 7 /* Unimplemented functionality. */ } flash_error_t; /** diff --git a/os/hal/ports/STM32/STM32F1xx/hal_efl_lld.c b/os/hal/ports/STM32/STM32F1xx/hal_efl_lld.c index eab83cf89..3032085fa 100644 --- a/os/hal/ports/STM32/STM32F1xx/hal_efl_lld.c +++ b/os/hal/ports/STM32/STM32F1xx/hal_efl_lld.c @@ -334,7 +334,7 @@ flash_error_t efl_lld_program(void *instance, flash_offset_t offset, flash_error_t efl_lld_start_erase_all(void *instance) { (void) instance; - return FLASH_ERROR_HW_FAILURE; + return FLASH_ERROR_UNIMPLEMENTED; } /**