--- nono/vm/rtc.h 2026/04/29 17:05:18 1.1.1.10 +++ nono/vm/rtc.h 2026/04/29 17:05:51 1.1.1.14 @@ -11,7 +11,6 @@ #pragma once #include "device.h" -#include "event.h" #include class Syncer; @@ -22,15 +21,12 @@ class RTCDevice : public IODevice public: RTCDevice(); - virtual ~RTCDevice() override; + ~RTCDevice() override; bool Init() override; virtual void StartTime(); - // clock-sync が実時間同期なら true を返す - bool GetSyncRealtime() const { return sync_rt; } - // 電源 OFF 時の実時間でのクロック入力。 // 次回のクロック発生までの時間間隔を返す。 uint64 ClockIn_PowerOff(); @@ -123,10 +119,10 @@ class RTCDevice : public IODevice bool ParseTime(const std::string& str, int *h, int *m, int *s); // 現在の月の最終日を返す (月の繰り上がり処理用) - int GetLastMday() const; + uint GetLastMday() const; // イベントコールバック - void Callback(Event& ev); + void Callback(Event *); // イベント間隔 const uint period = 31.25_msec; @@ -137,7 +133,7 @@ class RTCDevice : public IODevice Syncer *syncer {}; // RTC クロック入力 - Event event { this }; + Event *event {}; }; static inline RTCDevice *GetRTCDevice() {