Previous 199869 Revisions Next

r29640 Monday 14th April, 2014 at 17:58:23 UTC by smf
MESS: avigo.c & hunter2.c Allow all rs232 devices [smf]
[src/mess/drivers]avigo.c hunter2.c

trunk/src/mess/drivers/avigo.c
r29639r29640
6969 ******************************************************************************/
7070
7171
72#include "bus/rs232/null_modem.h"
7372#include "includes/avigo.h"
7473#include "avigo.lh"
7574
r29639r29640
865864   memset(base, 0x00, size);
866865}
867866
868static SLOT_INTERFACE_START( avigo_com )
869   SLOT_INTERFACE("null_modem", NULL_MODEM)
870SLOT_INTERFACE_END
871
872867static MACHINE_CONFIG_START( avigo, avigo_state )
873868   /* basic machine hardware */
874869   MCFG_CPU_ADD("maincpu", Z80, 4000000)
r29639r29640
878873
879874   MCFG_NS16550_ADD( "ns16550", avigo_com_interface, XTAL_1_8432MHz )
880875
881   MCFG_RS232_PORT_ADD( "serport", avigo_com, NULL )
876   MCFG_RS232_PORT_ADD( "serport", default_rs232_devices, NULL )
882877   MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, rx_w))
883878   MCFG_RS232_DCD_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, dcd_w))
884879   MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, dsr_w))
trunk/src/mess/drivers/hunter2.c
r29639r29640
3131#include "sound/speaker.h"
3232#include "machine/nsc810.h"
3333#include "bus/rs232/rs232.h"
34#include "bus/rs232/null_modem.h"
3534#include "machine/nvram.h"
3635#include "machine/bankdev.h"
3736
r29639r29640
371370      m_maincpu->set_input_line(NSC800_RSTB, ASSERT_LINE);
372371}
373372
374SLOT_INTERFACE_START( hunter2_rs232_devices )
375   SLOT_INTERFACE("null_modem", NULL_MODEM)
376SLOT_INTERFACE_END
377
378373static MACHINE_CONFIG_START( hunter2, hunter2_state )
379374   /* basic machine hardware */
380375   MCFG_CPU_ADD("maincpu", NSC800, 4000000)
r29639r29640
415410   MCFG_NSC810_TIMER0_OUT(WRITELINE(hunter2_state,timer0_out))
416411   MCFG_NSC810_TIMER1_OUT(WRITELINE(hunter2_state,timer1_out))
417412
418   MCFG_RS232_PORT_ADD("serial",hunter2_rs232_devices,NULL)
413   MCFG_RS232_PORT_ADD("serial",default_rs232_devices,NULL)
419414   MCFG_RS232_CTS_HANDLER(WRITELINE(hunter2_state,cts_w))
420415   MCFG_RS232_RXD_HANDLER(WRITELINE(hunter2_state,rxd_w))
421416

Previous 199869 Revisions Next


© 1997-2024 The MAME Team