| Rev | Line |  | 
|---|
| [20] | 1 | #include "stm32g4xx_hal.h" | 
|---|
|  | 2 | #include "stdbool.h" | 
|---|
|  | 3 | #include "main.h" | 
|---|
|  | 4 | #include "sysdata.h" | 
|---|
|  | 5 |  | 
|---|
|  | 6 | typedef enum startType_t | 
|---|
|  | 7 | { | 
|---|
|  | 8 | FIRST_START_AFTER_ERASE = 0,                                                                                            // Flash storage with calibration data will be written with the default values | 
|---|
|  | 9 | FIRST_START_AFTER_COMPARTIBLE_UPDATE,                                                                           // Calibration data will be preserved, additional configuration data also preserved | 
|---|
|  | 10 | FIRST_START_AFTER_INCOMPARTIBLE_UPDATE,                                                                         // Calibration data will be preserved, additional configuration data is set to default | 
|---|
|  | 11 | FIRST_START_ERROR                                                                                                                       // Cannot read memory location, where FIRST_START_ID was saved | 
|---|
| [28] | 12 |  | 
|---|
| [20] | 13 | } startType_t; | 
|---|
|  | 14 |  | 
|---|
|  | 15 | HAL_StatusTypeDef EEPROM_readConfig(sys_data_t* data); | 
|---|
|  | 16 | HAL_StatusTypeDef EEPROM_storeConfig(sys_data_t* data, uint8_t withSN); | 
|---|
|  | 17 | HAL_StatusTypeDef EEPROM_fullRestore(sys_data_t* data); | 
|---|
|  | 18 | HAL_StatusTypeDef EEPROM_factoryRestore(sys_data_t* data, int resetToDefault); | 
|---|
|  | 19 | startType_t EEPROM_isFirstStart(void); | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.