diff options
author | 2014-04-25 02:37:45 +0000 | |
---|---|---|
committer | 2014-04-25 02:37:45 +0000 | |
commit | ba41c4f6da1306a3c1db087d68bcfce92a850eaa (patch) | |
tree | cdc0bcd7f7eb5b00af7fd9c3302ad222b991039f /src/emu/machine/at45dbxx.h | |
parent | 19f0fe0e0be4786cd07af1ae185779b1df6a67f5 (diff) |
(MESS) Cybiko: hooked up serial flash to H8 sync serial. Gremlins occur. (nw)
Diffstat (limited to 'src/emu/machine/at45dbxx.h')
-rw-r--r-- | src/emu/machine/at45dbxx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/machine/at45dbxx.h b/src/emu/machine/at45dbxx.h index c90487f6e62..6091a36359f 100644 --- a/src/emu/machine/at45dbxx.h +++ b/src/emu/machine/at45dbxx.h @@ -29,6 +29,9 @@ #define MCFG_AT45DB161_ADD(_tag) \ MCFG_DEVICE_ADD(_tag, AT45DB161, 0) +#define MCFG_AT45DBXXX_SO_CALLBACK(_cb) \ + devcb = &at45db041_device::set_so_cb(*device, DEVCB2_##_cb); + // ======================> at45db041_device @@ -46,6 +49,9 @@ public: UINT8 *get_ptr() { return m_data; } + template<class _Object> static devcb2_base &set_so_cb(device_t &device, _Object object) { return downcast<at45db041_device &>(device).write_so.set_callback(object); } + devcb2_write_line write_so; + protected: // device-level overrides virtual void device_start(); |