#include <breezystm32.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
static const uint32_t | FLASH_WRITE_ADDR = 0x08000000 + (FLASH_PAGE_SIZE * (FLASH_PAGE_COUNT - (CONFIG_SIZE / 1024))) |
|
#define FLASH_PAGE_COUNT 128 |
#define FLASH_PAGE_SIZE ((uint16_t)0x400) |
Initialize Flash.
Definition at line 37 of file flash.c.
bool readEEPROM |
( |
void * |
dest, |
|
|
size_t |
len |
|
) |
| |
Read data from Flash.
- Parameters
-
dest | The memory address to copy the data to |
len | The number of bytes to copy |
- Returns
- true if the read was successful, false otherwise
Definition at line 54 of file flash.c.
bool writeEEPROM |
( |
const void * |
src, |
|
|
size_t |
len |
|
) |
| |
Write data to Flash.
- Parameters
-
src | The memory address to copy data from |
len | The number of bytes to copy |
- Returns
- true if the write was successful, false otherwise
Definition at line 60 of file flash.c.
const uint32_t FLASH_WRITE_ADDR = 0x08000000 + (FLASH_PAGE_SIZE * (FLASH_PAGE_COUNT - (CONFIG_SIZE / 1024))) |
|
static |