diff options
Diffstat (limited to 'src/devices/machine/i8255.h')
-rw-r--r-- | src/devices/machine/i8255.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/devices/machine/i8255.h b/src/devices/machine/i8255.h index bf540a26545..76753ba4c47 100644 --- a/src/devices/machine/i8255.h +++ b/src/devices/machine/i8255.h @@ -36,35 +36,6 @@ //************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_I8255_IN_PORTA_CB(_devcb) \ - downcast<i8255_device &>(*device).set_in_pa_callback(DEVCB_##_devcb); - -#define MCFG_I8255_IN_PORTB_CB(_devcb) \ - downcast<i8255_device &>(*device).set_in_pb_callback(DEVCB_##_devcb); - -#define MCFG_I8255_IN_PORTC_CB(_devcb) \ - downcast<i8255_device &>(*device).set_in_pc_callback(DEVCB_##_devcb); - -#define MCFG_I8255_OUT_PORTA_CB(_devcb) \ - downcast<i8255_device &>(*device).set_out_pa_callback(DEVCB_##_devcb); - -#define MCFG_I8255_OUT_PORTB_CB(_devcb) \ - downcast<i8255_device &>(*device).set_out_pb_callback(DEVCB_##_devcb); - -#define MCFG_I8255_OUT_PORTC_CB(_devcb) \ - downcast<i8255_device &>(*device).set_out_pc_callback(DEVCB_##_devcb); - -// output state when pins are in tri-state, default 0xff -#define MCFG_I8255_TRISTATE_PORTA_CB(_devcb) \ - downcast<i8255_device &>(*device).set_tri_pa_callback(DEVCB_##_devcb); - -#define MCFG_I8255_TRISTATE_PORTB_CB(_devcb) \ - downcast<i8255_device &>(*device).set_tri_pb_callback(DEVCB_##_devcb); - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -76,14 +47,6 @@ public: // construction/destruction i8255_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - template <class Object> devcb_base &set_in_pa_callback(Object &&cb) { return m_in_pa_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_in_pb_callback(Object &&cb) { return m_in_pb_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_in_pc_callback(Object &&cb) { return m_in_pc_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_out_pa_callback(Object &&cb) { return m_out_pa_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_out_pb_callback(Object &&cb) { return m_out_pb_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_out_pc_callback(Object &&cb) { return m_out_pc_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_tri_pa_callback(Object &&cb) { return m_tri_pa_cb.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_tri_pb_callback(Object &&cb) { return m_tri_pb_cb.set_callback(std::forward<Object>(cb)); } auto in_pa_callback() { return m_in_pa_cb.bind(); } auto in_pb_callback() { return m_in_pb_cb.bind(); } auto in_pc_callback() { return m_in_pc_cb.bind(); } |