1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// license:BSD-3-Clause
// copyright-holders:hap
/*
The ChessMachine EC by Tasc (LPT interface)
External module with ARM2 CPU, also sold under the Mephisto brand by H+G
see chessmachine_device for technical notes
*/
#include "emu.h"
#include "chessmec.h"
DEFINE_DEVICE_TYPE(CENTRONICS_CHESSMEC, centronics_chessmec_device, "centronics_chessmec", "Tasc ChessMachine EC Interface")
//-------------------------------------------------
// constructor
//-------------------------------------------------
centronics_chessmec_device::centronics_chessmec_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) :
device_t(mconfig, CENTRONICS_CHESSMEC, tag, owner, clock),
device_centronics_peripheral_interface(mconfig, *this),
m_chessm(*this, "chessm")
{ }
//-------------------------------------------------
// device_add_mconfig - add device configuration
//-------------------------------------------------
void centronics_chessmec_device::device_add_mconfig(machine_config &config)
{
CHESSMACHINE(config, m_chessm, XTAL::u(15'000'000)).data_out().set(FUNC(centronics_chessmec_device::output_busy));
}
|