[fpc-pascal] One experience with the unit serial
Marco van de Voort
marcov at stack.nl
Thu Nov 19 15:25:12 CET 2009
In our previous episode, Holger Bruns said:
> >
>
> Which can be done through a direct port access and some lines of code in
> assembler language. The second idea I have is the use of the device
> files /dev/ttySx, but how can these files be used to get access to all
> of the registers of an uart?
As said, ttySx is a generalization of a general serial device, not of a
certain chip.
Usually parameters are set by performing IOCTLs on the handle.
http://tldp.org/HOWTO/Serial-HOWTO.html
http://www.vanemery.com/Linux/Serial/serial-console.html
and heaps more if you put "linux serial" in google.
More information about the fpc-pascal
mailing list