diff options
Diffstat (limited to 'src/devices/machine/mc2661.h')
-rw-r--r-- | src/devices/machine/mc2661.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/devices/machine/mc2661.h b/src/devices/machine/mc2661.h index 9c6decef34c..5be3520a8d5 100644 --- a/src/devices/machine/mc2661.h +++ b/src/devices/machine/mc2661.h @@ -31,48 +31,6 @@ #include "diserial.h" -/*************************************************************************** - DEVICE CONFIGURATION MACROS -***************************************************************************/ - -#define MCFG_MC2661_RXC(_clock) \ - downcast<mc2661_device &>(*device).set_rxc(_clock); - -#define MCFG_MC2661_TXC(_clock) \ - downcast<mc2661_device &>(*device).set_txc(_clock); - -#define MCFG_MC2661_TXD_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_txd_callback(DEVCB_##_write); - -#define MCFG_MC2661_RXRDY_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_rxrdy_callback(DEVCB_##_write); - -#define MCFG_MC2661_TXRDY_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_txrdy_callback(DEVCB_##_write); - -#define MCFG_MC2661_RTS_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_rts_callback(DEVCB_##_write); - -#define MCFG_MC2661_DTR_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_dtr_callback(DEVCB_##_write); - -#define MCFG_MC2661_TXEMT_DSCHG_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_txemt_dschg_callback(DEVCB_##_write); - -#define MCFG_MC2661_BKDET_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_bkdet_callback(DEVCB_##_write); - -#define MCFG_MC2661_XSYNC_HANDLER(_write) \ - downcast<mc2661_device &>(*device).set_xsync_callback(DEVCB_##_write); - - - -/*************************************************************************** - TYPE DEFINITIONS -***************************************************************************/ - -// ======================> mc2661_device - class mc2661_device : public device_t, public device_serial_interface { @@ -83,15 +41,6 @@ public: void set_rxc(int clock) { m_rxc = clock; } void set_txc(int clock) { m_txc = clock; } - template <class Object> devcb_base &set_txd_callback(Object &&cb) { return m_write_txd.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_rxrdy_callback(Object &&cb) { return m_write_rxrdy.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_txrdy_callback(Object &&cb) { return m_write_txrdy.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_rts_callback(Object &&cb) { return m_write_rts.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_dtr_callback(Object &&cb) { return m_write_dtr.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_txemt_dschg_callback(Object &&cb) { return m_write_txemt_dschg.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_bkdet_callback(Object &&cb) { return m_write_bkdet.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_xsync_callback(Object &&cb) { return m_write_xsync.set_callback(std::forward<Object>(cb)); } - auto txd_handler() { return m_write_txd.bind(); } auto rxrdy_handler() { return m_write_rxrdy.bind(); } auto txrdy_handler() { return m_write_txrdy.bind(); } @@ -147,8 +96,6 @@ private: int m_sync_index; }; - -// device type definition DECLARE_DEVICE_TYPE(MC2661, mc2661_device) #endif // MAME_MACHINE_MC2661_H |