|
|
1.1 ! root 1: // ! 2: // nono ! 3: // Copyright (C) 2018 [email protected] ! 4: // ! 5: ! 6: #pragma once ! 7: ! 8: #include "device.h" ! 9: #include "scheduler.h" ! 10: ! 11: class SysClkDevice ! 12: : public IODevice ! 13: { ! 14: typedef IODevice inherited; ! 15: public: ! 16: SysClkDevice(); ! 17: virtual ~SysClkDevice(); ! 18: ! 19: virtual bool PowerOn(); ! 20: ! 21: virtual uint64 Read8(uint32); ! 22: virtual uint64 Write8(uint32, uint32); ! 23: ! 24: private: ! 25: // イベントコールバック ! 26: void Callback(int); ! 27: ! 28: // システムクロック割り込み有りなら true。 ! 29: bool sysint = false; ! 30: ! 31: // 割り込みイベント ! 32: Event event {}; ! 33: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.