stm32f3: flash: pgerr is not the same as pgperr
F3's flash interface is actually quite different, don't try and force sharing code that isn't really related. The "PGERR" is a very different bit than the parallelism error that f2/4/7 have.
This commit is contained in:
@@ -46,6 +46,11 @@
|
||||
|
||||
#include <libopencm3/stm32/flash.h>
|
||||
|
||||
void flash_clear_pgerr_flag(void)
|
||||
{
|
||||
FLASH_SR |= FLASH_SR_PGERR;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @brief Clear All Status Flags
|
||||
|
||||
@@ -54,7 +59,7 @@ Clears program error, end of operation, busy flags.
|
||||
|
||||
void flash_clear_status_flags(void)
|
||||
{
|
||||
flash_clear_pgperr_flag();
|
||||
flash_clear_pgerr_flag();
|
||||
flash_clear_eop_flag();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user