diff options
Diffstat (limited to 'src/mess/machine/ds1315.h')
-rw-r--r-- | src/mess/machine/ds1315.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mess/machine/ds1315.h b/src/mess/machine/ds1315.h index 29cd248a46c..969f109eaa0 100644 --- a/src/mess/machine/ds1315.h +++ b/src/mess/machine/ds1315.h @@ -18,7 +18,25 @@ MACROS ***************************************************************************/ -DECLARE_LEGACY_DEVICE(DS1315, ds1315); +class ds1315_device : public device_t +{ +public: + ds1315_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~ds1315_device() { global_free(m_token); } + + // access to legacy token + void *token() const { assert(m_token != NULL); return m_token; } +protected: + // device-level overrides + virtual void device_config_complete(); + virtual void device_start(); +private: + // internal state + void *m_token; +}; + +extern const device_type DS1315; + |