summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds1315.h
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-08-23 18:34:05 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-08-23 18:34:21 +0200
commitf10c6be54ff10fe557388f4e1d7fe3b648782b21 (patch)
tree24c452f1943990bbb683220b4b71315a89e7926f /src/devices/machine/ds1315.h
parent5d5a94e3d7bd1e7b4a3d66f68fb20fc4259480b5 (diff)
ds1315, ds1386, ds2404, ds75160a, ds75161a, eeprom, eepromser, eeprompar: Removed MCFG, nw
Diffstat (limited to 'src/devices/machine/ds1315.h')
-rw-r--r--src/devices/machine/ds1315.h18
1 files changed, 2 insertions, 16 deletions
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<ds1315_device &>(*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 <class Object> devcb_base &set_backing_handler(Object &&cb) { return m_backing_read.set_callback(std::forward<Object>(cb)); }
-
protected:
// device-level overrides
virtual void device_start() override;