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

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 48 of file uart_bdr.h.

Referenced by uart_init().

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

Definition at line 54 of file uart_bdr.h.

Referenced by uart_init().


Generated on Fri Sep 11 14:23:53 2009 for ATMEL by  doxygen 1.5.3