src/mess/drivers/x1.c
| r6164 | r6165 | |
| 1904 | 1904 | * |
| 1905 | 1905 | *************************************/ |
| 1906 | 1906 | |
| 1907 | | static void ctc0_interrupt(const device_config *device, int state) |
| 1907 | static Z80CTC_INTERFACE( ctc_intf ) |
| 1908 | 1908 | { |
| 1909 | | cputag_set_input_line(device->machine,"maincpu",INPUT_LINE_IRQ0,state); |
| 1910 | | } |
| 1911 | | |
| 1912 | | |
| 1913 | | static const z80ctc_interface ctc_intf = |
| 1914 | | { |
| 1915 | 1909 | 0, // timer disables |
| 1916 | | ctc0_interrupt, // interrupt handler |
| 1917 | | z80ctc_trg3_w, // ZC/TO0 callback |
| 1918 | | z80ctc_trg1_w, // ZC/TO1 callback |
| 1919 | | z80ctc_trg2_w, // ZC/TO2 callback |
| 1910 | DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0), // interrupt handler |
| 1911 | DEVCB_LINE(z80ctc_trg3_w), // ZC/TO0 callback |
| 1912 | DEVCB_LINE(z80ctc_trg1_w), // ZC/TO1 callback |
| 1913 | DEVCB_LINE(z80ctc_trg2_w), // ZC/TO2 callback |
| 1920 | 1914 | }; |
| 1921 | 1915 | |
| 1922 | 1916 | static const z80sio_interface sio_intf = |