stm32: flash: extract wait_for_last_operation to top level
This then eliminates the misguided attempts at merging f2/4 and f3 flash support. Some headers remain.
This commit is contained in:
@@ -35,5 +35,10 @@ void flash_clear_eop_flag(void);
|
||||
*/
|
||||
void flash_clear_status_flags(void);
|
||||
|
||||
/** Wait until Last Operation has Ended.
|
||||
* This loops indefinitely until an operation (write or erase) has completed by
|
||||
* testing the busy flag
|
||||
*/
|
||||
void flash_wait_for_last_operation(void);
|
||||
|
||||
END_DECLS
|
||||
@@ -105,7 +105,6 @@ BEGIN_DECLS
|
||||
void flash_clear_pgerr_flag(void);
|
||||
void flash_clear_wrprterr_flag(void);
|
||||
uint32_t flash_get_status_flags(void);
|
||||
void flash_wait_for_last_operation(void);
|
||||
void flash_program_word(uint32_t address, uint32_t data);
|
||||
void flash_program_half_word(uint32_t address, uint16_t data);
|
||||
void flash_erase_page(uint32_t page_address);
|
||||
|
||||
@@ -75,8 +75,6 @@
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
void flash_wait_for_last_operation(void);
|
||||
|
||||
END_DECLS
|
||||
/**@}*/
|
||||
|
||||
|
||||
@@ -155,7 +155,6 @@
|
||||
BEGIN_DECLS
|
||||
|
||||
void flash_clear_pgperr_flag(void);
|
||||
void flash_wait_for_last_operation(void);
|
||||
|
||||
void flash_lock_option_bytes(void);
|
||||
void flash_clear_erserr_flag(void);
|
||||
|
||||
@@ -223,7 +223,6 @@
|
||||
BEGIN_DECLS
|
||||
|
||||
void flash_clear_pgperr_flag(void);
|
||||
void flash_wait_for_last_operation(void);
|
||||
void flash_clear_pgserr_flag(void);
|
||||
void flash_clear_pgaerr_flag(void);
|
||||
void flash_clear_wrperr_flag(void);
|
||||
|
||||
Reference in New Issue
Block a user