libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
flash.c File Reference
Include dependency graph for flash.c:

Go to the source code of this file.

Functions

void flash_halfcycle_enable (void)
 Enable the FLASH Half Cycle Mode. More...
 
void flash_halfcycle_disable (void)
 Disable the FLASH Half Cycle Mode. More...
 
void flash_unlock_upper (void)
 Unlock the Flash Program and Erase Controller, upper Bank. More...
 
void flash_lock_upper (void)
 Lock the Flash Program and Erase Controller, upper Bank. More...
 
void flash_clear_pgerr_flag_upper (void)
 Clear the Programming Error Status Flag, upper Bank. More...
 
void flash_clear_eop_flag_upper (void)
 Clear the End of Operation Status Flag, upper Bank. More...
 
void flash_clear_wrprterr_flag_upper (void)
 Clear the Write Protect Error Status Flag, upper Bank. More...
 
void flash_clear_status_flags (void)
 Clear All Status Flags. More...
 
uint32_t flash_get_status_flags (void)
 Read All Status Flags. More...
 
void flash_program_half_word (uint32_t address, uint16_t data)
 Program a Half Word to FLASH. More...
 
void flash_erase_page (uint32_t page_address)
 Erase a Page of FLASH. More...
 
void flash_erase_all_pages (void)
 Erase All FLASH. More...