--- nono/vm/rtc.h 2026/04/29 17:05:43 1.1.1.13 +++ nono/vm/rtc.h 2026/04/29 17:06:01 1.1.1.15 @@ -11,7 +11,6 @@ #pragma once #include "device.h" -#include "event.h" #include class Syncer; @@ -123,10 +122,10 @@ class RTCDevice : public IODevice uint GetLastMday() const; // イベントコールバック - void Callback(Event& ev); + void Callback(Event *); // イベント間隔 - const uint period = 31.25_msec; + const uint64 period = 31.25_msec; // システムクロックが刻んでいる時刻 uint64 stime {}; @@ -134,9 +133,9 @@ class RTCDevice : public IODevice Syncer *syncer {}; // RTC クロック入力 - Event event { this }; + Event *event {}; }; -static inline RTCDevice *GetRTCDevice() { +inline RTCDevice *GetRTCDevice() { return Object::GetObject(OBJ_RTC); }