Hellen says merge #1772 backup ram.h
This commit is contained in:
parent
ed38250fd5
commit
6fdb54d0dc
|
@ -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_ */
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue