|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Persistent settings low level flash routines stm32. More...
#include "modules/core/settings.h"#include <libopencm3/stm32/flash.h>#include <libopencm3/stm32/crc.h>#include <libopencm3/stm32/dbgmcu.h>
Include dependency graph for settings_arch.c:Go to the source code of this file.
Data Structures | |
| struct | FlashInfo |
Macros | |
| #define | FLASH_BEGIN 0x08000000 |
| #define | FSIZ 8 |
| #define | FCHK 4 |
Functions | |
| static uint32_t | pflash_checksum (uint32_t ptr, uint32_t size) |
| static int32_t | flash_detect (struct FlashInfo *flash) |
| static int32_t | pflash_program_bytes (struct FlashInfo *flash, uint32_t src, uint32_t size, uint32_t chksum) |
| static int32_t | pflash_erase (struct FlashInfo *flash) |
| int32_t | persistent_write (void *ptr, uint32_t size) |
| int32_t | persistent_read (void *ptr, uint32_t size) |
| int32_t | persistent_clear (void) |
Persistent settings low level flash routines stm32.
data flash_addr data_size flash_end - FSIZ checksum flash_end - FCHK
STM32: minimum write size 2 bytes, endurance 10k cycles, max sector erase time 40ms, max prog time 70us per 2 bytes
Definition in file settings_arch.c.
| struct FlashInfo |
| #define FCHK 4 |
Definition at line 64 of file settings_arch.c.
| #define FLASH_BEGIN 0x08000000 |
Definition at line 62 of file settings_arch.c.
| #define FSIZ 8 |
Definition at line 63 of file settings_arch.c.
Definition at line 110 of file settings_arch.c.
References FLASH_BEGIN, and foo.
Referenced by persistent_clear(), persistent_read(), and persistent_write().
Here is the caller graph for this function:Definition at line 314 of file settings_arch.c.
References flash_detect(), foo, and pflash_erase().
Here is the call graph for this function:Definition at line 290 of file settings_arch.c.
References FCHK, flash_detect(), foo, FSIZ, and pflash_checksum().
Here is the call graph for this function:Definition at line 278 of file settings_arch.c.
References flash_detect(), foo, FSIZ, pflash_checksum(), and pflash_program_bytes().
Here is the call graph for this function:Definition at line 67 of file settings_arch.c.
References foo.
Referenced by persistent_read(), and persistent_write().
Here is the caller graph for this function:Definition at line 213 of file settings_arch.c.
References foo.
Referenced by persistent_clear(), and pflash_program_bytes().
Here is the caller graph for this function:
|
static |
Definition at line 236 of file settings_arch.c.
References FCHK, foo, FSIZ, and pflash_erase().
Referenced by persistent_write().
Here is the call graph for this function:
Here is the caller graph for this function: