CuVoodoo STM32F1 firmware template
|
library to read/write internal flash (API) More...
Go to the source code of this file.
Macros | |
#define | STORAGE_SIZE 2048 |
how much data (in bytes) should we be able to store (be sure it's available and does not overlap the firmware) | |
#define | STORAGE_END FLASH_BASE+DESIG_FLASH_SIZE |
the end of the flash area where to store data | |
#define | STORAGE_START STORAGE_END-STORAGE_SIZE |
the start of the flash area where to store data (be sure it's after the firmware data) | |
Functions | |
bool | flash_internal_read (uint32_t address, uint8_t *buffer, size_t size) |
read data from internal flash More... | |
bool | flash_internal_write (uint32_t address, uint8_t *buffer, size_t size) |
write data to internal flash More... | |
library to read/write internal flash (API)
Definition in file flash_internal.h.
bool flash_internal_read | ( | uint32_t | address, |
uint8_t * | buffer, | ||
size_t | size | ||
) |
read data from internal flash
[in] | address | start address of the data to read |
[out] | buffer | where to store the read data |
[in] | size | how much data to read, in bytes |
Definition at line 35 of file flash_internal.c.
bool flash_internal_write | ( | uint32_t | address, |
uint8_t * | buffer, | ||
size_t | size | ||
) |
write data to internal flash
[in] | address | start address where to write data to |
[in] | buffer | data to be written |
[in] | size | how much data to write, in bytes |
Definition at line 54 of file flash_internal.c.