![]() |
Speeduino
|
#include "globals.h"#include "storage.h"#include "sensors.h"#include "updates.h"#include "pages.h"#include "comms_CAN.h"#include "scheduler.h"#include "units.h"#include "unit_testing.h"Macros | |
| #define | CURRENT_DATA_VERSION 27 |
Functions | |
| template<typename TAxis > | |
| static void | multiplyAxis (TAxis &axis, uint8_t multiplier) |
| template<typename TAxis > | |
| static void | divideAxis (TAxis &axis, uint8_t divisor) |
| TESTABLE_STATIC void | updateTableU16toU8 (table2D_u16_u8_32 &targetTable, uint16_t u16EEpromBinAddress) |
| TESTABLE_STATIC void | upgradeV25toV26 (void) |
| TESTABLE_STATIC void | upgradeV26toV27 (void) |
| void | doUpdates (void) |
| void | multiplyTableValue (uint8_t pageNum, uint8_t multiplier) |
| void | divideTableValue (uint8_t pageNum, uint8_t divisor) |
EEPROM Storage updates.
| #define CURRENT_DATA_VERSION 27 |
|
static |
| void divideTableValue | ( | uint8_t | pageNum, |
| uint8_t | divisor | ||
| ) |
| void doUpdates | ( | void | ) |
|
static |
Store and load various configs to/from EEPROM considering the the data format versions of various SW generations. This routine is used for doing any data conversions that are required during firmware changes. This prevents users getting difference reports in TS when such a data change occurs. It also can be used for setting good values when there are variables that move locations in the ini. When a user skips multiple firmware versions at a time, this will roll through the updates 1 at a time. The doUpdates() uses may lower level routines from Arduino EEPROM library and storage.ino to carry out EEPROM storage tasks.
| void multiplyTableValue | ( | uint8_t | pageNum, |
| uint8_t | multiplier | ||
| ) |
| TESTABLE_STATIC void updateTableU16toU8 | ( | table2D_u16_u8_32 & | targetTable, |
| uint16_t | u16EEpromBinAddress | ||
| ) |
| TESTABLE_STATIC void upgradeV25toV26 | ( | void | ) |
| TESTABLE_STATIC void upgradeV26toV27 | ( | void | ) |