diff options
Diffstat (limited to 'src/devices/machine/timekpr.h')
-rw-r--r-- | src/devices/machine/timekpr.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/devices/machine/timekpr.h b/src/devices/machine/timekpr.h index 4742a1b1ae8..e4e1803b5a4 100644 --- a/src/devices/machine/timekpr.h +++ b/src/devices/machine/timekpr.h @@ -32,16 +32,16 @@ class timekeeper_device : public device_t, public device_nvram_interface { public: - DECLARE_WRITE8_MEMBER( write ); - DECLARE_READ8_MEMBER( read ); - DECLARE_WRITE8_MEMBER(watchdog_write); + void write(offs_t offset, u8 data); + u8 read(offs_t offset); + void watchdog_write(u8 data = 0); auto reset_cb() { return m_reset_cb.bind(); } auto irq_cb() { return m_irq_cb.bind(); } protected: // construction/destruction - timekeeper_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int size); + timekeeper_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u32 size); // device-level overrides virtual void device_start() override; @@ -62,70 +62,70 @@ private: void counters_from_ram(); // internal state - uint8_t m_control; - uint8_t m_seconds; - uint8_t m_minutes; - uint8_t m_hours; - uint8_t m_day; - uint8_t m_date; - uint8_t m_month; - uint8_t m_year; - uint8_t m_century; - - std::vector<uint8_t> m_data; - optional_region_ptr<uint8_t> m_default_data; + u8 m_control; + u8 m_seconds; + u8 m_minutes; + u8 m_hours; + u8 m_day; + u8 m_date; + u8 m_month; + u8 m_year; + u8 m_century; + + std::vector<u8> m_data; + optional_region_ptr<u8> m_default_data; emu_timer* m_watchdog_timer; attotime m_watchdog_delay; protected: - int const m_size; - int m_offset_watchdog; - int m_offset_control; - int m_offset_seconds; - int m_offset_minutes; - int m_offset_hours; - int m_offset_day; - int m_offset_date; - int m_offset_month; - int m_offset_year; - int m_offset_century; - int m_offset_flags; + u32 const m_size; + u32 m_offset_watchdog; + u32 m_offset_control; + u32 m_offset_seconds; + u32 m_offset_minutes; + u32 m_offset_hours; + u32 m_offset_day; + u32 m_offset_date; + u32 m_offset_month; + u32 m_offset_year; + u32 m_offset_century; + u32 m_offset_flags; }; class m48t02_device : public timekeeper_device { public: - m48t02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + m48t02_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); }; class m48t35_device : public timekeeper_device { public: - m48t35_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + m48t35_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); }; class m48t37_device : public timekeeper_device { public: - m48t37_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + m48t37_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); }; class m48t58_device : public timekeeper_device { public: - m48t58_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + m48t58_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); }; class mk48t08_device : public timekeeper_device { public: - mk48t08_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + mk48t08_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); }; class mk48t12_device : public timekeeper_device { public: - mk48t12_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); + mk48t12_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); }; // device type definition |