This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Baud rate detection macro


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

Attachment: serialpatch.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]