mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
i2cmem.cpp: Added PCF8570 device.
This commit is contained in:
parent
6d93412a24
commit
503941bf1e
@ -61,6 +61,7 @@ static inline void ATTR_PRINTF( 3, 4 ) verboselog( device_t *device, int n_level
|
|||||||
|
|
||||||
// device type definition
|
// device type definition
|
||||||
DEFINE_DEVICE_TYPE(I2C_24C01, i2c_24c01_device, "24c01", "24C01 I2C Memory")
|
DEFINE_DEVICE_TYPE(I2C_24C01, i2c_24c01_device, "24c01", "24C01 I2C Memory")
|
||||||
|
DEFINE_DEVICE_TYPE(I2C_PCF8570, i2c_pcf8570_device, "pcf8582", "PCF8570 I2C Memory")
|
||||||
DEFINE_DEVICE_TYPE(I2C_PCD8572, i2c_pcd8572_device, "pcd8572", "PCD8572 I2C Memory")
|
DEFINE_DEVICE_TYPE(I2C_PCD8572, i2c_pcd8572_device, "pcd8572", "PCD8572 I2C Memory")
|
||||||
DEFINE_DEVICE_TYPE(I2C_PCF8582, i2c_pcf8582_device, "pcf8582", "PCF8582 I2C Memory")
|
DEFINE_DEVICE_TYPE(I2C_PCF8582, i2c_pcf8582_device, "pcf8582", "PCF8582 I2C Memory")
|
||||||
DEFINE_DEVICE_TYPE(I2C_24C02, i2c_24c02_device, "24c02", "24C02 I2C Memory")
|
DEFINE_DEVICE_TYPE(I2C_24C02, i2c_24c02_device, "24c02", "24C02 I2C Memory")
|
||||||
@ -120,6 +121,11 @@ i2c_24c01_device::i2c_24c01_device(const machine_config &mconfig, const char *ta
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i2c_pcf8570_device::i2c_pcf8570_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock) :
|
||||||
|
i2cmem_device(mconfig, I2C_PCF8570, tag, owner, clock, 0, 0, 0x100)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
i2c_pcd8572_device::i2c_pcd8572_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock) :
|
i2c_pcd8572_device::i2c_pcd8572_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock) :
|
||||||
i2cmem_device(mconfig, I2C_PCD8572, tag, owner, clock, 0, 0, 0x80)
|
i2cmem_device(mconfig, I2C_PCD8572, tag, owner, clock, 0, 0, 0x80)
|
||||||
{
|
{
|
||||||
|
@ -100,6 +100,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_I2C_DEVICE(24c01);
|
DECLARE_I2C_DEVICE(24c01);
|
||||||
|
DECLARE_I2C_DEVICE(pcf8570);
|
||||||
DECLARE_I2C_DEVICE(pcd8572);
|
DECLARE_I2C_DEVICE(pcd8572);
|
||||||
DECLARE_I2C_DEVICE(pcf8582);
|
DECLARE_I2C_DEVICE(pcf8582);
|
||||||
DECLARE_I2C_DEVICE(24c02);
|
DECLARE_I2C_DEVICE(24c02);
|
||||||
@ -113,6 +114,7 @@ DECLARE_I2C_DEVICE(24c512);
|
|||||||
|
|
||||||
// device type definition
|
// device type definition
|
||||||
DECLARE_DEVICE_TYPE(I2C_24C01, i2c_24c01_device)
|
DECLARE_DEVICE_TYPE(I2C_24C01, i2c_24c01_device)
|
||||||
|
DECLARE_DEVICE_TYPE(I2C_PCF8570, i2c_pcf8570_device)
|
||||||
DECLARE_DEVICE_TYPE(I2C_PCD8572, i2c_pcd8572_device)
|
DECLARE_DEVICE_TYPE(I2C_PCD8572, i2c_pcd8572_device)
|
||||||
DECLARE_DEVICE_TYPE(I2C_PCF8582, i2c_pcf8582_device)
|
DECLARE_DEVICE_TYPE(I2C_PCF8582, i2c_pcf8582_device)
|
||||||
DECLARE_DEVICE_TYPE(I2C_24C02, i2c_24c02_device)
|
DECLARE_DEVICE_TYPE(I2C_24C02, i2c_24c02_device)
|
||||||
|
Loading…
Reference in New Issue
Block a user