diff options
author | 2013-11-18 21:05:30 +0000 | |
---|---|---|
committer | 2013-11-18 21:05:30 +0000 | |
commit | 671ba32470a9aee7a72180c750170855f0fd9b1f (patch) | |
tree | 79c426e10df96a12e8eb93f7f9c7c23305235264 /src/emu/imagedev/midiin.c | |
parent | 8c7bc3bfa741fd4cdfab9ba2af24da5742bc6906 (diff) |
diserial: Remove defines, cleanup clocks/timers, add sync support [O. Galibert]
Diffstat (limited to 'src/emu/imagedev/midiin.c')
-rw-r--r-- | src/emu/imagedev/midiin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/imagedev/midiin.c b/src/emu/imagedev/midiin.c index 182fc148cf5..92d7baec251 100644 --- a/src/emu/imagedev/midiin.c +++ b/src/emu/imagedev/midiin.c @@ -46,7 +46,7 @@ void midiin_device::device_reset() // we don't Rx, we Tx at 31250 8-N-1 set_rcv_rate(0); set_tra_rate(31250); - set_data_frame(8, 1, SERIAL_PARITY_NONE); + set_data_frame(8, 1, PARITY_NONE, false); } /*------------------------------------------------- @@ -73,6 +73,11 @@ void midiin_device::device_config_complete(void) void midiin_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) { + if (id) { + device_serial_interface::device_timer(timer, id, param, ptr); + return; + } + UINT8 buf[8192*4]; int bytesRead; |