Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-08

Non-standard baud rates in OS X | IOSSIOSPEED IOCTL

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bruce Tulloch

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.

Reply by email

Bruce Tulloch
to Bruce Tulloch

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.

Bruce Tulloch wrote 22 lines
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 - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email