[fpc-pascal] x86.pp and oldlinux.pp
Holger Bruns
holger.bruns at gmx.net
Wed Nov 4 16:45:00 CET 2009
Jeff Wormsley schrieb:
>
> If you really need to go that route, with full access to 100% of the
> UART, perhaps this book would help (chapter 6 is on serial device
> drivers).
>
> *http://tinyurl.com/yjk4c9j*
I'll follow your link.
>
> Just know that you will have to do that part of your application in C
> as a device driver, not with FPC. FPC does not, and cannot, override
> the base operating system restrictions regarding port access.
> Expecting it to do so just because TP under DOS would let you do that
> won't make it happen, either.
I don't understand a programming language as a tool to override an
operating system. This is not my goal. I ask for some clues to deal with
ports and UART devices already connected to a computer.
> And insulting comments like "Under the bottom line, it is embarrassing
> time consuming for a newbie like me, to work successfully with serial
> ports on linux." directed to the FPC list won't change that either.
I don't understand this quote as insulting. A newbie on programming
languages must learn how to write working code. This is always time
consuming even on computers with less restrictions. Thanks to Marc
Santhoff, I have got working sample code to use the serial unit
successfully. But I need to mention, the comments on procedures in this
unit are not error free. Despite to these comments the procedure
"seropen" returns -1, if a serial port cannot be found, and not zero.
My small selfwritten functions on serial ports are working now.
Holger
More information about the fpc-pascal
mailing list