From 90d8fd79b74860007189e31d6792781b9a0c2c3e Mon Sep 17 00:00:00 2001 From: smf- Date: Sun, 6 Apr 2014 13:48:05 +0000 Subject: MESS: coco uses rs232 port instead of bitbanger [smf] --- src/mess/machine/coco.c | 44 ++++---------------------------------------- 1 file changed, 4 insertions(+), 40 deletions(-) (limited to 'src/mess/machine/coco.c') diff --git a/src/mess/machine/coco.c b/src/mess/machine/coco.c index 8f19ac906f0..a20827733ff 100644 --- a/src/mess/machine/coco.c +++ b/src/mess/machine/coco.c @@ -88,7 +88,7 @@ coco_state::coco_state(const machine_config &mconfig, device_type type, const ch m_cococart(*this, CARTRIDGE_TAG), m_ram(*this, RAM_TAG), m_cassette(*this, "cassette"), - m_bitbanger(*this, BITBANGER_TAG), + m_rs232(*this, RS232_TAG), m_vhd_0(*this, VHD0_TAG), m_vhd_1(*this, VHD1_TAG) { @@ -479,7 +479,7 @@ READ8_MEMBER( coco_state::pia1_pb_r ) || (ram_size >= 0x8000 && (m_pia_0->b_output() & 0x80)); // serial in (PB0) - bool serial_in = (m_bitbanger != NULL) && (m_bitbanger->input() ? true : false); + bool serial_in = (m_rs232 != NULL) && (m_rs232->rxd_r() ? true : false); // composite the results return (memory_sense ? 0x04 : 0x00) @@ -963,9 +963,9 @@ void coco_state::update_prinout(bool prinout) else { /* output bitbanger if present (only on CoCos) */ - if (m_bitbanger != NULL) + if (m_rs232 != NULL) { - m_bitbanger->output(prinout ? 1 : 0); + m_rs232->write_txd(prinout ? 1 : 0); } } } @@ -1019,42 +1019,6 @@ INPUT_CHANGED_MEMBER(coco_state::joystick_mode_changed) -//------------------------------------------------- -// bitbanger_changed -//------------------------------------------------- - -void coco_state::bitbanger_changed(bool newvalue) -{ - // do nothing -} - - - -//------------------------------------------------- -// bitbanger_callback -//------------------------------------------------- - -WRITE_LINE_MEMBER( coco_state::bitbanger_callback ) -{ - bitbanger_changed(state ? true : false); -} - - - -//------------------------------------------------- -// bitbanger_config -//------------------------------------------------- - -const bitbanger_config coco_state::coco_bitbanger_config = -{ - DEVCB_DRIVER_LINE_MEMBER(coco_state, bitbanger_callback), /* callback */ - BITBANGER_PRINTER, /* default mode */ - BITBANGER_600, /* default output baud */ - BITBANGER_0PERCENT /* default fine tune adjustment */ -}; - - - //------------------------------------------------- // poll_hires_joystick //------------------------------------------------- -- cgit v1.2.3-70-g09d2