mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
intellec4: sensible default options for terminal and null_modem
This commit is contained in:
parent
5de1667104
commit
0f7baa2377
@ -37,7 +37,6 @@
|
||||
Paper tape reader run/stop is sent to RTS on the serial port.
|
||||
|
||||
TODO:
|
||||
* Default terminal serial settings
|
||||
* Universal slot cards
|
||||
* Expose general-purpose I/O?
|
||||
*/
|
||||
@ -288,6 +287,17 @@ ADDRESS_MAP_END
|
||||
Common machine configuration
|
||||
----------------------------------*/
|
||||
|
||||
DEVICE_INPUT_DEFAULTS_START(tty)
|
||||
DEVICE_INPUT_DEFAULTS("RS232_TXBAUD", 0x00ff, RS232_BAUD_110)
|
||||
DEVICE_INPUT_DEFAULTS("RS232_RXBAUD", 0x00ff, RS232_BAUD_110)
|
||||
DEVICE_INPUT_DEFAULTS("RS232_STARTBITS", 0x00ff, RS232_STARTBITS_1)
|
||||
DEVICE_INPUT_DEFAULTS("RS232_DATABITS", 0x00ff, RS232_DATABITS_8)
|
||||
DEVICE_INPUT_DEFAULTS("RS232_PARITY", 0x00ff, RS232_PARITY_NONE)
|
||||
DEVICE_INPUT_DEFAULTS("RS232_STOPBITS", 0x00ff, RS232_STOPBITS_2)
|
||||
DEVICE_INPUT_DEFAULTS("TERM_CONF", 0x01c0, 0x0000)
|
||||
DEVICE_INPUT_DEFAULTS("FLOW_CONTROL", 0x0001, 0x0000)
|
||||
DEVICE_INPUT_DEFAULTS_END
|
||||
|
||||
MACHINE_CONFIG_START(intellec4)
|
||||
MCFG_DEVICE_ADD("prgbank", ADDRESS_MAP_BANK, 0)
|
||||
MCFG_DEVICE_PROGRAM_MAP(intellec4_program_banks)
|
||||
@ -306,6 +316,8 @@ MACHINE_CONFIG_START(intellec4)
|
||||
MCFG_DEVICE_ADD("promprg", INTEL_IMM6_76, 0)
|
||||
|
||||
MCFG_RS232_PORT_ADD("tty", default_rs232_devices, "terminal")
|
||||
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("terminal", tty)
|
||||
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("null_modem", tty)
|
||||
|
||||
MCFG_DEVICE_ADD("bus", INTELLEC4_UNIV_BUS, 518000. / 7)
|
||||
MCFG_INTELLEC4_UNIV_BUS_ROM_SPACE("prgbank", AS_PROGRAM)
|
||||
|
Loading…
Reference in New Issue
Block a user