avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] AVR Macro Reference


From: John Krautkramer
Subject: [avr-gcc-list] AVR Macro Reference
Date: Fri, 30 Mar 2012 14:46:25 -0700

Hi,

Studying the WinAVR & AVR Libc docs, I come across many references like:

#define UDR     UDR0
#define UCSRA   UCSR0A
#define UCSRB   UCSR0B
#define FE      FE0
#define TXEN    TXEN0
#define RXEN    RXEN0
#define RXCIE   RXCIE0
#define UDRE    UDRE0
#define U2X     U2X0
#define UBRRL   UBRR0L

  ADCSRA &= ~_BV(ADIE); /* disable ADC interrupt */
  UCSRA = _BV(U2X);             /* improve baud rate error by using 2x clk */
  UBRRL = (F_CPU / (16UL * UART_BAUD)) - 1;
  SET(DDR, HD44780_RS);
  ASSIGN(DDR, HD44780_D4, 0x0F);

Where do I find a reference for what all these "constants" mean and how to use them?

Thanks in advance for the direction! I'm obviously new to this.


reply via email to

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