1 // license:BSD-3-Clause
2 // copyright-holders:Curt Coder, smf
3 /**********************************************************************
4 
5     geoCable Centronics Cable emulation
6 
7 **********************************************************************/
8 
9 #include "emu.h"
10 #include "geocable.h"
11 
12 
13 
14 //**************************************************************************
15 //  MACROS / CONSTANTS
16 //**************************************************************************
17 
18 #define CENTRONICS_TAG "centronics"
19 
20 
21 
22 //**************************************************************************
23 //  DEVICE DEFINITIONS
24 //**************************************************************************
25 
26 DEFINE_DEVICE_TYPE(C64_GEOCABLE, c64_geocable_device, "c64_geocable", "C64 geoCable")
27 
28 
29 //-------------------------------------------------
30 //  device_add_mconfig - add device configuration
31 //-------------------------------------------------
32 
device_add_mconfig(machine_config & config)33 void c64_geocable_device::device_add_mconfig(machine_config &config)
34 {
35 	CENTRONICS(config, m_centronics, centronics_devices, "printer");
36 	m_centronics->busy_handler().set(FUNC(c64_geocable_device::output_b));
37 }
38 
39 
40 
41 //**************************************************************************
42 //  LIVE DEVICE
43 //**************************************************************************
44 
45 //-------------------------------------------------
46 //  c64_geocable_device - constructor
47 //-------------------------------------------------
48 
c64_geocable_device(const machine_config & mconfig,const char * tag,device_t * owner,uint32_t clock)49 c64_geocable_device::c64_geocable_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
50 	device_t(mconfig, C64_GEOCABLE, tag, owner, clock),
51 	device_pet_user_port_interface(mconfig, *this),
52 	m_centronics(*this, CENTRONICS_TAG)
53 {
54 }
55 
56 
57 //-------------------------------------------------
58 //  device_start - device-specific startup
59 //-------------------------------------------------
60 
device_start()61 void c64_geocable_device::device_start()
62 {
63 }
64