mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
MESS: avigo.c & hunter2.c Allow all rs232 devices [smf]
This commit is contained in:
parent
177b6f63ae
commit
98596fb8c6
@ -69,7 +69,6 @@
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#include "bus/rs232/null_modem.h"
|
||||
#include "includes/avigo.h"
|
||||
#include "avigo.lh"
|
||||
|
||||
@ -865,10 +864,6 @@ void avigo_state::nvram_init(nvram_device &nvram, void *base, size_t size)
|
||||
memset(base, 0x00, size);
|
||||
}
|
||||
|
||||
static SLOT_INTERFACE_START( avigo_com )
|
||||
SLOT_INTERFACE("null_modem", NULL_MODEM)
|
||||
SLOT_INTERFACE_END
|
||||
|
||||
static MACHINE_CONFIG_START( avigo, avigo_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, 4000000)
|
||||
@ -878,7 +873,7 @@ static MACHINE_CONFIG_START( avigo, avigo_state )
|
||||
|
||||
MCFG_NS16550_ADD( "ns16550", avigo_com_interface, XTAL_1_8432MHz )
|
||||
|
||||
MCFG_RS232_PORT_ADD( "serport", avigo_com, NULL )
|
||||
MCFG_RS232_PORT_ADD( "serport", default_rs232_devices, NULL )
|
||||
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, rx_w))
|
||||
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, dcd_w))
|
||||
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, dsr_w))
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "sound/speaker.h"
|
||||
#include "machine/nsc810.h"
|
||||
#include "bus/rs232/rs232.h"
|
||||
#include "bus/rs232/null_modem.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/bankdev.h"
|
||||
|
||||
@ -371,10 +370,6 @@ WRITE_LINE_MEMBER(hunter2_state::rxd_w)
|
||||
m_maincpu->set_input_line(NSC800_RSTB, ASSERT_LINE);
|
||||
}
|
||||
|
||||
SLOT_INTERFACE_START( hunter2_rs232_devices )
|
||||
SLOT_INTERFACE("null_modem", NULL_MODEM)
|
||||
SLOT_INTERFACE_END
|
||||
|
||||
static MACHINE_CONFIG_START( hunter2, hunter2_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", NSC800, 4000000)
|
||||
@ -415,7 +410,7 @@ static MACHINE_CONFIG_START( hunter2, hunter2_state )
|
||||
MCFG_NSC810_TIMER0_OUT(WRITELINE(hunter2_state,timer0_out))
|
||||
MCFG_NSC810_TIMER1_OUT(WRITELINE(hunter2_state,timer1_out))
|
||||
|
||||
MCFG_RS232_PORT_ADD("serial",hunter2_rs232_devices,NULL)
|
||||
MCFG_RS232_PORT_ADD("serial",default_rs232_devices,NULL)
|
||||
MCFG_RS232_CTS_HANDLER(WRITELINE(hunter2_state,cts_w))
|
||||
MCFG_RS232_RXD_HANDLER(WRITELINE(hunter2_state,rxd_w))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user