stm32g0: flash: add erase/program stuff
probably can be refactored with other chips, did not really looked yet.
This commit is contained in:
committed by
Karl Palsson
parent
dc98e2e6d9
commit
9bf6ce8b64
@@ -258,6 +258,24 @@
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
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_clear_operr_flag(void);
|
||||
void flash_clear_eop_flag(void);
|
||||
|
||||
void flash_clear_status_flags(void);
|
||||
|
||||
void flash_wait_for_last_operation(void);
|
||||
|
||||
void flash_program_double_word(uint32_t address, uint64_t data);
|
||||
void flash_program(uint32_t address, uint8_t *data, uint32_t len);
|
||||
|
||||
void flash_erase_page(uint32_t page);
|
||||
void flash_erase_all_pages(void);
|
||||
|
||||
/** Enable instruction cache */
|
||||
void flash_icache_enable(void);
|
||||
/** Disable instruction cache */
|
||||
|
||||
Reference in New Issue
Block a user