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.

Macros

#define IAP_WR   (void *)(0x1000AB)
 
#define IAP_E   (void *)(0x100127)
 

Functions

uint32_t flash_write (uint32_t *dest, uint32_t *src, uint8_t cnt)
 Write to the user flash. More...
 
uint32_t flash_read (uint32_t *src, uint32_t *dest, uint8_t cnt)
 Read from the user flash. More...
 
uint32_t flash_erase (void)
 Erase the user flash. More...
 

Variables

uint32_t(* iap_write_read )(uint32_t *, uint32_t *, uint8_t, uint8_t) = IAP_WR
 
uint32_t(* iap_erase )(void) = IAP_E