- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# uart_bdr.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines
#define | Uart_set_baudrate(bdr)
#define | Uart_double_bdr() (UCSRA |= (1<<U2X1))

## Detailed Description

Provide Baudrate configuration for MCU - Compiler: IAR EWAVR and GNU GCC for AVR

- Supported devices: AT90USB1287, AT90USB1286, AT90USB647, AT90USB646
  Author:
    Atmel Corporation: http://www.atmel.com
    Support and FAQ: http://support.atmel.no/

Definition in file uart_bdr.h.

## Define Documentation

#define Uart_set_baudrate | ( | bdr |  | ) |

Value:

    ( UBRRH = (Uchar)((((Uint32)FOSC*1000L)/((Uint32)bdr*16)-1)>>8),\
                                      UBRRL = (Uchar)(((Uint32)FOSC*1000 )/((Uint32)bdr*16)-1)    )

Definition at line 45 of file uart_bdr.h.

Referenced by uart_init().

#define Uart_double_bdr | ( |  | ) | (UCSRA |= (1<<U2X1))

Definition at line 51 of file uart_bdr.h.

Referenced by uart_init().