[fpc-pascal] Non-standard baud rates in OS X | IOSSIOSPEED IOCTL
Bruce Tulloch
bruce at causal.com
Mon Aug 15 07:23:08 CEST 2011
Apple have define an IOCTL (since Tiger) called IOSSIOSPEED which
facilitates non-standard baud rates.
They publish a C example which explains it:
http://developer.apple.com/library/mac/#samplecode/SerialPortSample/Introduction/Intro.html
Attached is a patch for FPC's darwin RTL which adds this IOCTL.
I think it's correct (i.e. it evaluates to the same value, 0x80045402,
as some C I threw together using Apple's headers, see attached).
I've appended this definition in termios.inc as this seems the most
appropriate place for it. Jonas?
Cheers, Bruce.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: termios.inc.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110815/880463dc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IOSSIOSPEED.c
Type: text/x-csrc
Size: 438 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110815/880463dc/attachment.c>
More information about the fpc-pascal
mailing list