stm32: flash: BSY bit has never been writable.
This has been copied around for years, but has never been a writable bit on any target.
This commit is contained in:
@@ -122,14 +122,6 @@ void flash_clear_eop_flag(void)
|
||||
FLASH_SR |= FLASH_SR_EOP;
|
||||
}
|
||||
|
||||
/** @brief Clear the Busy Status Flag
|
||||
*/
|
||||
void flash_clear_bsy_flag(void)
|
||||
{
|
||||
FLASH_SR &= ~FLASH_SR_BSY;
|
||||
}
|
||||
|
||||
|
||||
/** @brief Wait until Last Operation has Ended
|
||||
* This loops indefinitely until an operation (write or erase) has completed
|
||||
* by testing the busy flag.
|
||||
@@ -216,7 +208,6 @@ void flash_clear_status_flags(void)
|
||||
flash_clear_wrperr_flag();
|
||||
flash_clear_pgperr_flag();
|
||||
flash_clear_eop_flag();
|
||||
flash_clear_bsy_flag();
|
||||
}
|
||||
|
||||
/** @brief Unlock the Option Byte Access
|
||||
|
||||
Reference in New Issue
Block a user