diff options
Diffstat (limited to 'src/mame/drivers/pcat_nit.cpp')
-rw-r--r-- | src/mame/drivers/pcat_nit.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/mame/drivers/pcat_nit.cpp b/src/mame/drivers/pcat_nit.cpp index 25518a4e6b7..5966c54379e 100644 --- a/src/mame/drivers/pcat_nit.cpp +++ b/src/mame/drivers/pcat_nit.cpp @@ -242,10 +242,12 @@ MACHINE_CONFIG_START(pcat_nit_state::pcat_nit) pcvideo_vga(config); pcat_common(config); - MCFG_DEVICE_ADD( "ns16450_0", NS16450, XTAL(1'843'200) ) - MCFG_INS8250_OUT_TX_CB(WRITELINE("microtouch", microtouch_device, rx)) - MCFG_INS8250_OUT_INT_CB(WRITELINE("pic8259_1", pic8259_device, ir4_w)) - MCFG_MICROTOUCH_ADD( "microtouch", 9600, WRITELINE("ns16450_0", ins8250_uart_device, rx_w) ) // rate? + + ns16450_device &uart(NS16450(config, "ns16450_0", XTAL(1'843'200))); + uart.out_tx_callback().set("microtouch", FUNC(microtouch_device::rx)); + uart.out_int_callback().set("pic8259_1", FUNC(pic8259_device::ir4_w)); + + MCFG_MICROTOUCH_ADD( "microtouch", 9600, WRITELINE(uart, ins8250_uart_device, rx_w) ) // rate? NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); MACHINE_CONFIG_END @@ -261,10 +263,11 @@ MACHINE_CONFIG_START(pcat_nit_state::bonanza) pcvideo_cirrus_gd5428(config); pcat_common(config); - MCFG_DEVICE_ADD( "ns16450_0", NS16450, XTAL(1'843'200) ) - MCFG_INS8250_OUT_TX_CB(WRITELINE("microtouch", microtouch_device, rx)) - MCFG_INS8250_OUT_INT_CB(WRITELINE("pic8259_1", pic8259_device, ir4_w)) - MCFG_MICROTOUCH_ADD( "microtouch", 9600, WRITELINE("ns16450_0", ins8250_uart_device, rx_w) ) // rate? + ns16450_device &uart(NS16450(config, "ns16450_0", XTAL(1'843'200))); + uart.out_tx_callback().set("microtouch", FUNC(microtouch_device::rx)); + uart.out_int_callback().set("pic8259_1", FUNC(pic8259_device::ir4_w)); + + MCFG_MICROTOUCH_ADD( "microtouch", 9600, WRITELINE(uart, ins8250_uart_device, rx_w) ) // rate? NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); MACHINE_CONFIG_END |