perry@madnix.UUCP (Perry Kivolowitz) (02/01/89)
Someone asked for an example of how multiple serial ports might be programmed. Well, I can't speak for anyone else's driver but the following applies to ours (ASDG's). Since our driver is completely compatible with the programmer interface defined in the rom kernel manual for the serial.device, simply do the following: 1. Find your favorite piece of example code which works on serial.device. 2. Goto the OpenDevice call. 3. Change serial.device to siosbx.device. Change unit number 0 to whatever unit number you want to address. (Heck, make this a variable even! :-). 4. Recompile 5. Enjoy. Or then again, there's the short form example: 1. Find your favorite compiled program making use of serial.device. 2. Load this file into CEDPro. Do a search and replace of serial.device with siosbx.device 3. Enjoy. Of course, the short form limits you to using port 0 unless you are good at locating a push of 0 in the OpenDevice call. The only caveats I can add relative to the current serial.device are: 1. Our CMD_STOP and CMD_START actually work. 2. You can often (often not always) get away with using an IOB that you just aborted without waiting for it to complete. This is asking for trouble. With my driver you can get away with this less often. So just say no to using an aborted IOB without waiting for it to complete. The programmer docs for our serial device is the RKM. -- Perry Kivolowitz, ASDG Inc. ARPA: madnix!perry@cs.wisc.edu {uunet|ncoast}!marque! UUCP: {harvard|rutgers|ucbvax}!uwvax!astroatc!nicmad!madnix!perry