Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Persistent settings interface. More...
#include "std.h"
Go to the source code of this file.
Macros | |
#define | settings_StoreSettings(_v) { settings_store_flag = _v; settings_store(); } |
#define | settings_ClearSettings(_v) { settings_clear_flag = _v; settings_clear(); } |
Functions | |
void | settings_init (void) |
int32_t | settings_store (void) |
store settings marked as persistent to flash More... | |
int32_t | settings_clear (void) |
clear all persistent settings from flash More... | |
int32_t | persistent_write (void *ptr, uint32_t size) |
int32_t | persistent_read (void *ptr, uint32_t size) |
int32_t | persistent_clear (void) |
Variables | |
bool_t | settings_store_flag |
flag for setting feedback. More... | |
bool_t | settings_clear_flag |
Persistent settings interface.
Definition in file settings.h.
#define settings_ClearSettings | ( | _v | ) | { settings_clear_flag = _v; settings_clear(); } |
Definition at line 41 of file settings.h.
#define settings_StoreSettings | ( | _v | ) | { settings_store_flag = _v; settings_store(); } |
Definition at line 40 of file settings.h.
Referenced by superbitrf_receive_packet_cb().
int32_t persistent_clear | ( | void | ) |
Definition at line 74 of file settings_arch.c.
References flash_detect(), PERSISTENT_SETTINGS_FILE, pflash_erase(), and pflash_erase_page().
Referenced by settings_clear().
Definition at line 49 of file settings_arch.c.
References FlashInfo::addr, FCHK, flash_detect(), FSIZ, FlashInfo::page_size, PERSISTENT_SETTINGS_FILE, and pflash_checksum().
Referenced by settings_init().
Definition at line 37 of file settings_arch.c.
References flash_detect(), FSIZ, FlashInfo::page_size, PERSISTENT_SETTINGS_FILE, pflash_checksum(), and pflash_program_bytes().
Referenced by settings_store().
int32_t settings_clear | ( | void | ) |
clear all persistent settings from flash
Definition at line 77 of file settings.c.
References FALSE, persistent_clear(), settings_clear_flag, and TRUE.
Referenced by autopilot_ClearSettings().
void settings_init | ( | void | ) |
Definition at line 43 of file settings.c.
References pers_settings, and persistent_read().
Referenced by init_ap(), and main_init().
int32_t settings_store | ( | void | ) |
store settings marked as persistent to flash
Definition at line 57 of file settings.c.
References FALSE, pers_settings, persistent_write(), settings_store_flag, and TRUE.
Referenced by autopilot_StoreSettings().
bool_t settings_clear_flag |
Definition at line 40 of file settings.c.
Referenced by autopilot_ClearSettings(), and settings_clear().
bool_t settings_store_flag |
flag for setting feedback.
if TRUE, was stored sucessfully. Also settings still need a variable, pure function call not possible yet.
Definition at line 38 of file settings.c.
Referenced by autopilot_StoreSettings(), and settings_store().