summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/alfaskop_s41_kb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/alfaskop_s41_kb.h')
-rw-r--r--src/mame/machine/alfaskop_s41_kb.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/mame/machine/alfaskop_s41_kb.h b/src/mame/machine/alfaskop_s41_kb.h
deleted file mode 100644
index 8ac29df5f40..00000000000
--- a/src/mame/machine/alfaskop_s41_kb.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Joakim Larsson Edström
-#ifndef MAME_MACHINE_ALFASKOP_S41_KB_H
-#define MAME_MACHINE_ALFASKOP_S41_KB_H
-
-#pragma once
-
-#include "cpu/m6800/m6800.h"
-#include "machine/mc6846.h"
-
-DECLARE_DEVICE_TYPE(ALFASKOP_S41_KB, alfaskop_s41_keyboard_device)
-
-class alfaskop_s41_keyboard_device : public device_t
-{
-public:
- auto txd_cb() { return m_txd_cb.bind(); }
- auto leds_cb() { return m_leds_cb.bind(); }
-
- alfaskop_s41_keyboard_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock = 0);
-
- DECLARE_INPUT_CHANGED_MEMBER(key);
- DECLARE_WRITE_LINE_MEMBER(rxd_w);
- //DECLARE_WRITE_LINE_MEMBER(hold_w);
- DECLARE_WRITE_LINE_MEMBER(rst_line_w);
-
-protected:
- virtual void device_start() override;
- virtual void device_add_mconfig(machine_config &config) override;
- virtual ioport_constructor device_input_ports() const override;
- virtual tiny_rom_entry const *device_rom_region() const override;
-
- required_device<m6802_cpu_device> m_mcu;
- required_device<mc6846_device> m_mc6846;
- required_ioport_array<6> m_rows;
- devcb_write_line m_txd_cb; // Callback for KBD-> S41
- devcb_write8 m_leds_cb; // Callback for all 8 leds -> layout
-
- bool m_rxd_high; // state of Rx input line
- bool m_txd_high; // state of Tx output line
- bool m_hold;
- uint16_t m_col_select;
- uint8_t m_p1;
- uint8_t m_leds;
-
- void alfaskop_s41_kb_mem(address_map &map);
-};
-
-#endif // MAME_MACHINE_ALFASKOP_S41_KB_H