stm32l4: flash: don't use misleading names

flash_clear_pgperr_flag is a name used on f247, which is actually most
analogous to the SIZERR bit on l4, (it's a parallelism error)

the bit being cleared originally in this function, PROGERR is a new bit,
and should have it's own name.

Add a function to handle the previously unhandled size/parallelism flag,
and rename the existing one to properly reflect it's new name.
This commit is contained in:
Karl Palsson
2018-07-24 22:43:08 +00:00
parent 659d52b952
commit ddc7ab8c6c
2 changed files with 17 additions and 9 deletions

View File

@@ -222,8 +222,9 @@
BEGIN_DECLS
void flash_clear_pgperr_flag(void);
void flash_clear_progerr_flag(void);
void flash_clear_pgserr_flag(void);
void flash_clear_size_flag(void);
void flash_clear_pgaerr_flag(void);
void flash_clear_wrperr_flag(void);
void flash_lock_option_bytes(void);