src/mess/drivers/dectalk.c
| r5639 | r5640 | |
| 152 | 152 | return data; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | static void duart_output(const device_config *device, UINT8 data) |
| 156 | { |
| 157 | // todo: handle the RTS (bit 0) and DTR (bit 2) bits |
| 158 | #ifdef SERIAL_TO_STDERR |
| 159 | fprintf(stderr, "RTS: %01X, DTR: %01X\n", data&1, (data&4)>>2); |
| 160 | #endif |
| 161 | } |
| 162 | |
| 155 | 163 | static void duart_tx(const device_config *device, int channel, UINT8 data) |
| 156 | 164 | { |
| 157 | 165 | #ifdef SERIAL_TO_STDERR |
| r5639 | r5640 | |
| 164 | 172 | duart_irq_handler, |
| 165 | 173 | duart_tx, |
| 166 | 174 | duart_input, |
| 167 | | NULL |
| 175 | duart_output |
| 168 | 176 | }; |
| 169 | 177 | |
| 170 | 178 | static struct |