[fpc-pascal] Non-standard baud rates in OS X | IOSSIOSPEED IOCTL

Bruce Tulloch bruce at causal.com
Mon Aug 15 08:55:27 CEST 2011


I can now confirm that the ioctl definition I used is correct, tested on
a Snow Leopard system with an FT232RL chip USB/Serial chip.

Cheers, Bruce.

On 08/15/11 15:23, Bruce Tulloch wrote:
> 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.
> 
> 
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list