Make RTC/NVR a normal device instead of a special thing. Fixes nvr_recalc() being called on systems without NVR, which could cause timer crashes.
This commit is contained in:
parent
58e42fda81
commit
3508059f16
4 changed files with 90 additions and 52 deletions
|
|
@ -1,4 +1,6 @@
|
|||
void nvr_init();
|
||||
#include "device.h"
|
||||
|
||||
extern device_t nvr_device;
|
||||
|
||||
extern int enable_sync;
|
||||
|
||||
|
|
@ -7,8 +9,6 @@ extern int nvr_dosave;
|
|||
void loadnvr();
|
||||
void savenvr();
|
||||
|
||||
void nvr_recalc();
|
||||
|
||||
FILE *nvrfopen(char *fn, char *mode);
|
||||
|
||||
extern uint8_t nvrram[128];
|
||||
|
|
|
|||
Loading…
Reference in a new issue