--- nono/vm/rtc.h 2026/04/29 17:04:32 1.1.1.2 +++ nono/vm/rtc.h 2026/04/29 17:04:55 1.1.1.6 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2017 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -35,15 +36,13 @@ struct RTC // あまりやりたくないので、これを IODevice 派生クラスとしておく。 class RTCDevice : public IODevice { - typedef IODevice inherited; + using inherited = IODevice; public: - RTCDevice(); - virtual ~RTCDevice(); + RTCDevice(const std::string& objname_); + virtual ~RTCDevice() override; - // 初期化 - // VM の RTC に仮想時刻(の初期値)をセットする。 - virtual bool InitRTC() = 0; + void ResetHard() override; // 32Hz クロック入力。 //