1
/*********************************************************************
7
*********************************************************************/
13
/***************************************************************************
15
***************************************************************************/
17
DECLARE_LEGACY_DEVICE(TMS5501, tms5501);
21
/***************************************************************************
23
***************************************************************************/
25
/* TMS5501 timer and interrupt controller */
26
typedef struct _tms5501_interface tms5501_interface;
27
struct _tms5501_interface
29
UINT8 (*pio_read_callback)(device_t *device);
30
void (*pio_write_callback)(device_t *device, UINT8);
31
void (*interrupt_callback)(device_t *device, int intreq, UINT8 vector);
37
/***************************************************************************
38
DEVICE CONFIGURATION MACROS
39
***************************************************************************/
41
#define MCFG_TMS5501_ADD(_tag, _intrf) \
42
MCFG_DEVICE_ADD(_tag, TMS5501, 0) \
43
MCFG_DEVICE_CONFIG(_intrf)
47
/***************************************************************************
49
***************************************************************************/
51
READ8_DEVICE_HANDLER( tms5501_r );
52
WRITE8_DEVICE_HANDLER( tms5501_w );
54
void tms5501_set_pio_bit_7 (device_t *device, UINT8 data);
55
void tms5501_sensor (device_t *device, UINT8 data);
57
#endif /* __TMS5501_H__ */