diff options
author | 2014-04-06 13:48:05 +0000 | |
---|---|---|
committer | 2014-04-06 13:48:05 +0000 | |
commit | 90d8fd79b74860007189e31d6792781b9a0c2c3e (patch) | |
tree | 3debb5e80795aede2383acb0c1e845e2b70d9d63 /src/mess/machine/coco.c | |
parent | fc7289d467b03c2a8c99df0e5d9bfd18ae17e395 (diff) |
MESS: coco uses rs232 port instead of bitbanger [smf]
Diffstat (limited to 'src/mess/machine/coco.c')
-rw-r--r-- | src/mess/machine/coco.c | 44 |
1 files changed, 4 insertions, 40 deletions
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); } } } @@ -1020,42 +1020,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 //------------------------------------------------- |