Fixed bug 3299306.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.2.x@2961 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2011-05-14 10:47:19 +00:00
parent b854c70f4d
commit eb6a871d45
2 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,7 @@ typedef struct {
* @brief Macro for baud rate computation. * @brief Macro for baud rate computation.
* @note Make sure the final baud rate is within tolerance. * @note Make sure the final baud rate is within tolerance.
*/ */
#define UBRR(b) ((F_CPU / (b << 4)) - 1) #define UBRR(b) (((F_CPU / b) >> 4) - 1)
/*===========================================================================*/ /*===========================================================================*/
/* External declarations. */ /* External declarations. */

View File

@ -69,6 +69,7 @@
***************************************************************************** *****************************************************************************
*** 2.2.4 *** *** 2.2.4 ***
- FIX: Fixed invalid BRR() macro in AVR serial driver (bug 3299306).
- FIX: Fixed missing IRQ vectors amicable names for STM32 XL devices (bug - FIX: Fixed missing IRQ vectors amicable names for STM32 XL devices (bug
3298889). 3298889).
- FIX: Fixed wrong identifier in AVR serial driver (bug 3292084). - FIX: Fixed wrong identifier in AVR serial driver (bug 3292084).