From f10c6be54ff10fe557388f4e1d7fe3b648782b21 Mon Sep 17 00:00:00 2001 From: mooglyguy Date: Thu, 23 Aug 2018 18:34:05 +0200 Subject: ds1315, ds1386, ds2404, ds75160a, ds75161a, eeprom, eepromser, eeprompar: Removed MCFG, nw --- src/devices/machine/ds1315.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/devices/machine/ds1315.h') diff --git a/src/devices/machine/ds1315.h b/src/devices/machine/ds1315.h index 21a7f37c14f..a5b70c38c76 100644 --- a/src/devices/machine/ds1315.h +++ b/src/devices/machine/ds1315.h @@ -15,26 +15,14 @@ #pragma once -/*************************************************************************** - DEVICE CONFIGURATION MACROS -***************************************************************************/ - -#define MCFG_DS1315_ADD(_tag) \ - MCFG_DEVICE_ADD(_tag, DS1315, 0) - -#define MCFG_DS1315_BACKING_HANDLER(_devcb) \ - downcast(*device).set_backing_handler(DEVCB_##_devcb); - -/*************************************************************************** - MACROS -***************************************************************************/ - class ds1315_device : public device_t { public: ds1315_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); ~ds1315_device() {} + auto read_backing() { return m_backing_read.bind(); } + // this handler automates the bits 0/2 stuff DECLARE_READ8_MEMBER(read); @@ -46,8 +34,6 @@ public: bool chip_enable(); void chip_reset(); - template devcb_base &set_backing_handler(Object &&cb) { return m_backing_read.set_callback(std::forward(cb)); } - protected: // device-level overrides virtual void device_start() override; -- cgit v1.2.3