Baud rate detection macro

Enrico Piria epiria@libero.it
Mon Jul 11 10:56:00 GMT 2005


Hello.
I'm writing a device driver for a serial port that is able
to automatically detect the baud rate of the serial line.
This patch adds a macro to the list contained in serialio.h.
When the device detects the new baud rate, the driver is thus
able to inform the application about it, via
the "indicate_status" callback. The new baud rate
(expressed through the proper CYGNUM_SERIAL_BAUD_xxx macro)
might be passed in the "which" field of the "cyg_serial_line_status_t" structure.

Please note that, in the changelog, I added my email address
with some little anti-spam tricks. If this doesn't seem correct
to you, you are free to modify it. However, this practice could
become a policy, in order to prevent people from getting their
mailbox flooded with trash.

Regards

Enrico Piria



____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: serialpatch.diff
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20050711/9e31810c/attachment.ksh>


More information about the Ecos-patches mailing list