avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] RFC: Addition to util/setbaud.h


From: Frédéric Nadeau
Subject: [avr-libc-dev] RFC: Addition to util/setbaud.h
Date: Thu, 5 Mar 2009 10:57:10 -0500

Hi there,

I noticed that util/setbaud.h cannot calculate baudrate for sync mode.

I did the following modification to the file. I doubt it will it the
next release, but I do beleive it is a good thing to have.

Basic explanation:
if BAUD_SYNC is define and equal to 1, a modified macro is use to
calculate baud rate.
If BAUD_SYNC is define and equal to 0 or not define, macro works as before.

Modification should not break code that use the current version of setbaud.h.

Thanks for your comments

Frédéric Nadeau
http://code.google.com/p/avr-drv/

Attachment: setBaud.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]