src/mess/drivers/dectalk.c
| r6548 | r6549 | |
| 25 | 25 | * * pins OP0 and OP2 are connected to the primary serial port: |
| 26 | 26 | * * OP0 is RTS |
| 27 | 27 | * * OP2 is DTR |
| 28 | | * * Attach m68k interrupts properly; I suspect the DUART INT and SPC INTs are both hooked up wrong |
| 29 | 28 | * * Actually store the X2212 nvram's eeprom data to disk rather than throwing it out on exit |
| 30 | 29 | * * is there some way i can hook this up using &generic_nvram? |
| 31 | | * * emulate/simulate the MT8060 dtmf decoder as a 16-key input device? |
| 30 | * * emulate/simulate the MT8060 dtmf decoder as a 16-key input device? or hook it to some simple fft code? |
| 32 | 31 | * * discuss and figure out how to have an external application send data to the two serial ports to be spoken |
| 33 | 32 | * |
| 34 | 33 | * LED error code list (found by experimentation and help from leeeeee): |
| r6548 | r6549 | |
| 682 | 681 | dac_signed_data_16_w( speaker, data ); |
| 683 | 682 | } |
| 684 | 683 | |
| 685 | | // the following function reads the keyboard and sends to the duart to allow for user input; it doesn't 'exist' on the real unit |
| 686 | | // it more or less simulates a half duplex input terminal |
| 687 | | static TIMER_CALLBACK( simulate_input_cb ) |
| 688 | | { |
| 689 | | // todo: check RTS line |
| 690 | | |
| 691 | | timer_set(machine, ATTOTIME_IN_HZ(120), NULL, 0, simulate_input_cb); |
| 692 | | } |
| 693 | | |
| 694 | 684 | /* Driver init: stuff that needs setting up which isn't directly affected by reset */ |
| 695 | 685 | static DRIVER_INIT( dectalk ) |
| 696 | 686 | { |
| 697 | 687 | dectalk_clear_all_fifos(machine); |
| 698 | 688 | dectalk.simulate_outfifo_error = 0; |
| 699 | 689 | timer_set(machine, ATTOTIME_IN_HZ(10000), NULL, 0, outfifo_read_cb); |
| 700 | | timer_set(machine, ATTOTIME_IN_HZ(120), NULL, 0, simulate_input_cb); |
| 701 | 690 | } |
| 702 | 691 | |
| 703 | 692 | static WRITE8_DEVICE_HANDLER( dectalk_kbd_put ) |