Previous 15994 Revisions Next

r5665 Thursday 10th September, 2009 at 06:08:48 UTC by Jonathan Gevaryahu
68681/2681 duart: When a channel is in loopback mode, do not actually transmit bytes sent to that duart channel over the TX pin
[src/emu/machine]68681.c

src/emu/machine/68681.c
r5664r5665
377377   duart68681_state   *duart68681 = get_safe_token(device);
378378   int ch = param & 1;
379379
380   if (duart68681->duart_config->tx_callback)
380   // send the byte unless we're in loopback mode;
381   // in loopback mode do NOT 'actually' send the byte: the TXn pin is held high when loopback mode is on.
382   if ((duart68681->duart_config->tx_callback) && ((duart68681->channel[ch].MR2&0xC0) != 0x80))
381383      duart68681->duart_config->tx_callback(device, ch, duart68681->channel[ch].tx_data);
382384
383385   duart68681->channel[ch].tx_ready = 1;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team