MotorController
Functions
data_storage.h File Reference

Go to the source code of this file.

Functions

void load_data_from_flash (void)
 Load configuration data from flash. More...
 
int32_t store_data_in_flash (void)
 Save configuration data in flash. More...
 

Function Documentation

§ load_data_from_flash()

void load_data_from_flash ( void  )

Load configuration data from flash.

This function fills the "settings" global variable with the values stored in flash.

Definition at line 18 of file data_storage.c.

§ store_data_in_flash()

int32_t store_data_in_flash ( void  )

Save configuration data in flash.

This function writes in flash the content of the "settings" global variables.

Returns
An int32_t indicating success, else an error code.
Return values
FLASH_RETURN_SUCCESSNo error.
FLASH_RETURN_NO_PERMISSIONAccess denied.
FLASH_RETURN_BAD_FLASHFlash cell error.

Definition at line 22 of file data_storage.c.