mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
(MESS) superpet: Added RS-232 port. (nw)
This commit is contained in:
parent
21884c4f62
commit
d9dd49a75e
@ -16,8 +16,9 @@
|
|||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
#define M6809_TAG "u4"
|
#define M6809_TAG "u4"
|
||||||
#define M6551_TAG "u23"
|
#define MOS6551_TAG "u23"
|
||||||
#define MOS6702_TAG "u2"
|
#define MOS6702_TAG "u2"
|
||||||
|
#define RS232_TAG "rs232"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -53,6 +54,20 @@ const rom_entry *superpet_device::device_rom_region() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------
|
||||||
|
// rs232_port_interface rs232_intf
|
||||||
|
//-------------------------------------------------
|
||||||
|
|
||||||
|
static const rs232_port_interface rs232_intf =
|
||||||
|
{
|
||||||
|
DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, rxd_w),
|
||||||
|
DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, dcd_w),
|
||||||
|
DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, dsr_w),
|
||||||
|
DEVCB_NULL,
|
||||||
|
DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, cts_w)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// ADDRESS_MAP( superpet_mem )
|
// ADDRESS_MAP( superpet_mem )
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
@ -70,8 +85,12 @@ static MACHINE_CONFIG_FRAGMENT( superpet )
|
|||||||
MCFG_CPU_ADD(M6809_TAG, M6809, XTAL_16MHz/16)
|
MCFG_CPU_ADD(M6809_TAG, M6809, XTAL_16MHz/16)
|
||||||
MCFG_CPU_PROGRAM_MAP(superpet_mem)
|
MCFG_CPU_PROGRAM_MAP(superpet_mem)
|
||||||
|
|
||||||
MCFG_MOS6551_ADD(M6551_TAG, XTAL_1_8432MHz, DEVWRITELINE(DEVICE_SELF, superpet_device, acia_irq_w))
|
|
||||||
MCFG_MOS6702_ADD(MOS6702_TAG, XTAL_16MHz/16)
|
MCFG_MOS6702_ADD(MOS6702_TAG, XTAL_16MHz/16)
|
||||||
|
|
||||||
|
MCFG_MOS6551_ADD(MOS6551_TAG, XTAL_1_8432MHz, DEVWRITELINE(DEVICE_SELF, superpet_device, acia_irq_w))
|
||||||
|
MCFG_MOS6551_RXD_TXD_CALLBACKS(NULL, DEVWRITELINE(RS232_TAG, rs232_port_device, tx))
|
||||||
|
|
||||||
|
MCFG_RS232_PORT_ADD(RS232_TAG, rs232_intf, default_rs232_devices, NULL, NULL)
|
||||||
MACHINE_CONFIG_END
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
|
|
||||||
@ -146,7 +165,7 @@ superpet_device::superpet_device(const machine_config &mconfig, const char *tag,
|
|||||||
device_t(mconfig, SUPERPET, "SuperPET", tag, owner, clock),
|
device_t(mconfig, SUPERPET, "SuperPET", tag, owner, clock),
|
||||||
device_pet_expansion_card_interface(mconfig, *this),
|
device_pet_expansion_card_interface(mconfig, *this),
|
||||||
m_maincpu(*this, M6809_TAG),
|
m_maincpu(*this, M6809_TAG),
|
||||||
m_acia(*this, M6551_TAG),
|
m_acia(*this, MOS6551_TAG),
|
||||||
m_dongle(*this, MOS6702_TAG),
|
m_dongle(*this, MOS6702_TAG),
|
||||||
m_rom(*this, M6809_TAG),
|
m_rom(*this, M6809_TAG),
|
||||||
m_ram(*this, "ram"),
|
m_ram(*this, "ram"),
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "machine/mos6551.h"
|
#include "machine/mos6551.h"
|
||||||
#include "machine/mos6702.h"
|
#include "machine/mos6702.h"
|
||||||
#include "machine/petexp.h"
|
#include "machine/petexp.h"
|
||||||
|
#include "machine/serial.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user