stm32 : change returned value of mass_erase function
authorgcembed <gcembed@gmail.com>
Tue, 1 Jun 2010 11:48:22 +0000 (13:48 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 3 Jun 2010 18:40:00 +0000 (20:40 +0200)
commita1cf1b52444c67b6c56ad58fe29be5a285b244cb
tree7a658f986f40a1ebccfc67865505bc03594f5219
parent631514724db1772f9e08e1dcb564fe9205def57e
stm32 : change returned value of mass_erase function

Hello,
"stm32x mass_erase" return ERROR_OK even if something goes wrong.
Here is a summary of changes :
* in stm32x_mass_erase : return ERROR_FLASH_OPERATION_FAILED when error
detected in FLASH_SR register;
* in COMMAND_HANDLER(stm32x_handle_mass_erase_command) : return the
returned value of stm32x_mass_erase().

I don't know if there is reason to always return ERROR_OK ?

Gaëtan
src/flash/nor/stm32x.c