MotorController
data_storage.h
Go to the documentation of this file.
1 /** @file */
2 
3 #ifndef DATA_STORAGE_H
4 #define DATA_STORAGE_H
5 
6 #include "hal.h"
7 
8 /**
9  * @brief Load configuration data from flash.
10  *
11  * @details This function fills the "settings" global variable with the values
12  * stored in flash.
13  */
14 extern void load_data_from_flash(void);
15 
16 /**
17  * @brief Save configuration data in flash.
18  *
19  * @details This function writes in flash the content of the "settings" global
20  * variables.
21  *
22  * @return An int32_t indicating success, else an error code.
23  * @retval FLASH_RETURN_SUCCESS No error.
24  * @retval FLASH_RETURN_NO_PERMISSION Access denied.
25  * @retval FLASH_RETURN_BAD_FLASH Flash cell error.
26  */
27 extern int32_t store_data_in_flash(void);
28 
29 #endif /* DATA_STORAGE_H */
void load_data_from_flash(void)
Load configuration data from flash.
Definition: data_storage.c:18
int32_t store_data_in_flash(void)
Save configuration data in flash.
Definition: data_storage.c:22