diff options
author | 2014-03-30 19:12:08 +0000 | |
---|---|---|
committer | 2014-03-30 19:12:08 +0000 | |
commit | aaa52239b89542918060196777f036e59d7a58ec (patch) | |
tree | 9f2883d3c4657ffa75f0bb565a91239c25526422 /src/emu | |
parent | 46a56763da59ac27ca6c06bf0527146b90bf41ba (diff) |
(MESS) adam: WIP. (nw)
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/bus/adamnet/spi.c | 33 | ||||
-rw-r--r-- | src/emu/bus/adamnet/spi.h | 7 |
2 files changed, 36 insertions, 4 deletions
diff --git a/src/emu/bus/adamnet/spi.c b/src/emu/bus/adamnet/spi.c index 37ef5dafdff..55157705a66 100644 --- a/src/emu/bus/adamnet/spi.c +++ b/src/emu/bus/adamnet/spi.c @@ -2,7 +2,7 @@ // copyright-holders:Curt Coder /********************************************************************** - Coleco Adam serial port interface emulation + Coleco Adam Serial/Parallel Interface emulation Copyright MESS Team. Visit http://mamedev.org for licensing and usage restrictions. @@ -18,6 +18,9 @@ //************************************************************************** #define M6801_TAG "m6801" +#define MC2661_TAG "mc2661" +#define RS232_TAG "rs232" +#define CENTRONICS_TAG "centronics" @@ -69,6 +72,25 @@ ADDRESS_MAP_END //------------------------------------------------- +// MC2661_INTERFACE( uart_intf ) +//------------------------------------------------- + +static MC2661_INTERFACE( uart_intf ) +{ + 0, + 0, + DEVCB_NULL, + DEVCB_NULL, + DEVCB_NULL, + DEVCB_NULL, + DEVCB_NULL, + DEVCB_NULL, + DEVCB_NULL, + DEVCB_NULL +}; + + +//------------------------------------------------- // MACHINE_DRIVER( adam_spi ) //------------------------------------------------- @@ -76,8 +98,15 @@ static MACHINE_CONFIG_FRAGMENT( adam_spi ) MCFG_CPU_ADD(M6801_TAG, M6801, XTAL_4MHz) MCFG_CPU_PROGRAM_MAP(adam_spi_mem) MCFG_CPU_IO_MAP(adam_spi_io) - MCFG_DEVICE_DISABLE() + + MCFG_MC2661_ADD(MC2661_TAG, XTAL_4_9152MHz, uart_intf) + MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL) + + MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "image") + MCFG_CENTRONICS_DATA_INPUT_BUFFER("cent_data_in") + MCFG_DEVICE_ADD("cent_data_in", INPUT_BUFFER, 0) + MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG) MACHINE_CONFIG_END diff --git a/src/emu/bus/adamnet/spi.h b/src/emu/bus/adamnet/spi.h index 425174c911f..819d58ddd2b 100644 --- a/src/emu/bus/adamnet/spi.h +++ b/src/emu/bus/adamnet/spi.h @@ -2,7 +2,7 @@ // copyright-holders:Curt Coder /********************************************************************** - Coleco Adam floppy disk controller emulation + Coleco Adam Serial/Parallel Interface emulation Copyright MESS Team. Visit http://mamedev.org for licensing and usage restrictions. @@ -16,7 +16,10 @@ #include "emu.h" #include "adamnet.h" +#include "bus/centronics/ctronics.h" +#include "bus/rs232/rs232.h" #include "cpu/m6800/m6800.h" +#include "machine/mc2661.h" @@ -27,7 +30,7 @@ // ======================> adam_spi_device class adam_spi_device : public device_t, - public device_adamnet_card_interface + public device_adamnet_card_interface { public: // construction/destruction |