Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
settings.c File Reference

Persistent settings interface. More...

#include "subsystems/settings.h"
#include "generated/settings.h"
+ Include dependency graph for settings.c:

Go to the source code of this file.

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...
 

Variables

struct PersistentSettings pers_settings
 
bool_t settings_store_flag
 flag for setting feedback. More...
 
bool_t settings_clear_flag
 

Detailed Description

Persistent settings interface.

Definition in file settings.c.

Function Documentation

int32_t settings_clear ( void  )

clear all persistent settings from flash

Returns
0 on success

Definition at line 77 of file settings.c.

References FALSE, persistent_clear(), settings_clear_flag, and TRUE.

Referenced by autopilot_ClearSettings().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int32_t settings_store ( void  )

store settings marked as persistent to flash

Returns
0 on success

Definition at line 57 of file settings.c.

References FALSE, pers_settings, persistent_write(), settings_store_flag, and TRUE.

Referenced by autopilot_StoreSettings().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct PersistentSettings pers_settings

Definition at line 31 of file settings.c.

Referenced by settings_init(), and settings_store().

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().