Hellen says merge #1772 backup ram.h

This commit is contained in:
rusefi 2020-09-09 10:20:21 -04:00
parent c930071203
commit 6b3eadb082
2 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,9 @@ typedef enum {
BACKUP_CJ125_CALIBRATION_HEATER,
DFU_JUMP_REQUESTED,
/* The number of stored backup variables */
BACKUP_RAM_NUM,
} backup_ram_e;
@ -42,5 +45,7 @@ typedef enum {
uint32_t backupRamLoad(backup_ram_e idx);
// use backup-power RTC registers (non-volatile memory) to store the data
void backupRamSave(backup_ram_e idx, uint32_t value);
// make sure that all changes are saved before we shutdown the MCU
void backupRamFlush(void);
#endif /* BACKUP_RAM_H_ */

View File

@ -114,6 +114,7 @@ static void reportPins(void) {
static MemoryStream portNameStream;
static char portNameBuffer[20];
const char *hwPortname(brain_pin_e brainPin) {
if (brainPin == GPIO_INVALID) {
return "INVALID";
@ -133,6 +134,7 @@ const char *hwPortname(brain_pin_e brainPin) {
}
#if (BOARD_EXT_GPIOCHIPS > 0)
else {
const char *pin_name = gpiochips_getPinName(brainPin);
if (pin_name) {