RTC changes :

- Replace linux-time.c and win-time.c with universal rtc.c code
- Add RTC binary and 12-hour modes, century register, and alarm support
- Cleaned up nvr.c a bit
- Fix handling of update ended flag
- Add ability to disable host clock synchronisation
Changes from Battler and Mahod.
This commit is contained in:
SarahW 2016-07-19 20:25:27 +01:00
commit 074de51639
14 changed files with 561 additions and 135 deletions

View file

@ -97,6 +97,7 @@ void fatal(const char *format, ...)
va_end(ap);
fputs(buf,pclogf);
fflush(pclogf);
savenvr();
dumppic();
dumpregs();
exit(-1);
@ -679,6 +680,8 @@ void loadconfig(char *fn)
}
}
}
enable_sync = config_get_int(NULL, "enable_sync", 1);
}
void saveconfig()
@ -764,6 +767,8 @@ void saveconfig()
}
}
}
config_set_int(NULL, "enable_sync", enable_sync);
config_save(config_file_default);
}