diff options
Diffstat (limited to 'src/devices/bus/bbc/1mhzbus/cfa3000opt.h')
-rw-r--r-- | src/devices/bus/bbc/1mhzbus/cfa3000opt.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/devices/bus/bbc/1mhzbus/cfa3000opt.h b/src/devices/bus/bbc/1mhzbus/cfa3000opt.h new file mode 100644 index 00000000000..e372a14b51b --- /dev/null +++ b/src/devices/bus/bbc/1mhzbus/cfa3000opt.h @@ -0,0 +1,50 @@ +// license:BSD-3-Clause +// copyright-holders:Nigel Barnes +/********************************************************************** + + Henson CFA 3000 Option Board + +**********************************************************************/ + +#ifndef MAME_BUS_BBC_1MHZBUS_CFA3000OPT_H +#define MAME_BUS_BBC_1MHZBUS_CFA3000OPT_H + +#pragma once + +#include "1mhzbus.h" + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> cfa3000_opt_device + +class cfa3000_opt_device : + public device_t, + public device_bbc_1mhzbus_interface +{ +public: + // construction/destruction + cfa3000_opt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + + DECLARE_READ8_MEMBER(option_r); + +protected: + // device-level overrides + virtual void device_start() override; + virtual void device_reset() override; + + // optional information overrides + virtual ioport_constructor device_input_ports() const override; + +private: + required_ioport m_opt; +}; + + +// device type definition +DECLARE_DEVICE_TYPE(CFA3000_OPT, cfa3000_opt_device) + + +#endif // MAME_BUS_BBC_1MHZBUS_CFA3000OPT_H |