Previous 15994 Revisions Next

r6549 Sunday 6th December, 2009 at 09:41:52 UTC by Jonathan Gevaryahu
dectalk: minor comment update, remove dead code
[src/mess/drivers]dectalk.c

src/mess/drivers/dectalk.c
r6548r6549
2525*    * pins OP0 and OP2 are connected to the primary serial port:
2626*      * OP0 is RTS
2727*      * OP2 is DTR
28*  * Attach m68k interrupts properly; I suspect the DUART INT and SPC INTs are both hooked up wrong
2928*  * Actually store the X2212 nvram's eeprom data to disk rather than throwing it out on exit
3029*    * 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?
3231*  * discuss and figure out how to have an external application send data to the two serial ports to be spoken
3332*
3433* LED error code list (found by experimentation and help from leeeeee):
r6548r6549
682681   dac_signed_data_16_w( speaker, data );
683682}
684683
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
687static 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
694684/* Driver init: stuff that needs setting up which isn't directly affected by reset */
695685static DRIVER_INIT( dectalk )
696686{
697687   dectalk_clear_all_fifos(machine);
698688   dectalk.simulate_outfifo_error = 0;
699689   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);
701690}
702691
703692static WRITE8_DEVICE_HANDLER( dectalk_kbd_put )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team