[fpc-pascal] problem setting up serial port
Marc Santhoff
M.Santhoff at t-online.de
Sat Mar 11 13:51:36 CET 2006
Resending, was blocked:
Am Samstag, den 11.03.2006, 12:26 +0100 schrieb Marco van de Voort:
> > Note the line in pascal saying "c_line: char" which is missing in the
> > systems declaration. This is an error, insn't it?
>
> I think so. Can you verify that it works with that line commented?
It looks like it would ... ;).
What I've done:
- changed termios.inc (comment out the line in question)
- ran gmake in that dir
- copied termio.o and termio.ppu to the same dir with "lib" instead of
"src" in it's name, because fpc -vu told me to put it there
- compiled my program with setting ospeed in two ways:
tios.c_ospeed := B1200;
cfsetospeed(tios, B1200);
In both cases the call to tcsetattr worked without error.
I cannot tell if communication on the serial port is working now, my
program seems to have some other problems, but this part seems to be
okay.
HTH and thanks,
Marc
More information about the fpc-pascal
mailing list