com - RS232 Serial port driver                          Back to the Source Index

Load-on-detect device driver for COM ports, and attached devices - primarily used for Serial Mouse, digitisers on Fujitsu Stylistic 1000,1200,2300 and ST4110, Wacom Pen tablet and NMEA GPS devices.

main.html contains most of the code including the DRV table (at the end of the file). This structure, referenced by .drvtbl in com.link, is the means by which the ChaOS load-on-demand system locates a DRV for a device.

gps.html  is a serial port attachment driver including a parser for common NMEA sentences, making GPS position available to the ChaOS system by posting messages to the system queue each time the GPS device squawks.

st4110.html is a special driver for the Fujitsu Stylistic ST4110 inbuilt digitiser.

com.link is the project makefile, and includes dot directives needed to create a device driver in ChaOS:

     .drvtbl       -       defines the location and size of an array of DRV structures (one .DRV file in ChaOS can contain any number of device drivers)

     .term       -       defines the function to be called to terminate the device driver (mandatory for TSRs in ChaOS - should contain cleanup code should the device driver be terminated)

main.html

gps.html

st4110.html

com.link