avr.h File Reference

Go to the source code of this file.

Defines

#define __AVR__
 Specify AVR target.
#define cbi(sfr, bit)   (_SFR_BYTE(sfr) &= ~_BV(bit))
#define sbi(sfr, bit)   (_SFR_BYTE(sfr) |= _BV(bit))
#define inb(sfr)   _SFR_BYTE(sfr)
#define outb(sfr, val)   (_SFR_BYTE(sfr) = (val))
#define outp(val, sfr)   outb(sfr, val)
#define inp(sfr)   inb(sfr)
#define BV(bit)   _BV(bit)
#define inw(sfr)   _SFR_WORD(sfr)
#define outw(sfr, val)   (_SFR_WORD(sfr) = (val))
#define PRG_RDB(addr)   pgm_read_byte(addr)
#define __bss_end   __heap_start
#define UDR   UDR0
#define UBRR   UBRR0L
#define USR   UCSR0A
#define UCR   UCSR0B
#define EICR   EICRB
#define RXC   RXC0
#define UDRE   UDRE0
#define FE   FE0
#define DOR   DOR0
#define RXCIE   RXCIE0
#define TXCIE   TXCIE0
#define UDRIE   UDRIE0
#define RXEN   RXEN0
#define TXEN   TXEN0

Variables

void * __heap_start


Define Documentation

#define __AVR__

Specify AVR target.

Only GCC provides this as a predefined macro. Nut/OS explicitly re-defines this, so that it will be available for all compilers.

Definition at line 102 of file avr.h.

#define cbi ( sfr,
bit   )     (_SFR_BYTE(sfr) &= ~_BV(bit))

Definition at line 110 of file avr.h.

#define sbi ( sfr,
bit   )     (_SFR_BYTE(sfr) |= _BV(bit))

Definition at line 113 of file avr.h.

#define inb ( sfr   )     _SFR_BYTE(sfr)

Definition at line 116 of file avr.h.

#define outb ( sfr,
val   )     (_SFR_BYTE(sfr) = (val))

Definition at line 119 of file avr.h.

#define outp ( val,
sfr   )     outb(sfr, val)

Definition at line 122 of file avr.h.

#define inp ( sfr   )     inb(sfr)

Definition at line 125 of file avr.h.

#define BV ( bit   )     _BV(bit)

Definition at line 128 of file avr.h.

#define inw ( sfr   )     _SFR_WORD(sfr)

Definition at line 131 of file avr.h.

#define outw ( sfr,
val   )     (_SFR_WORD(sfr) = (val))

Definition at line 134 of file avr.h.

#define PRG_RDB ( addr   )     pgm_read_byte(addr)

Definition at line 137 of file avr.h.

#define __bss_end   __heap_start

Definition at line 140 of file avr.h.

#define UDR   UDR0

Definition at line 148 of file avr.h.

Referenced by UartAvrOutput().

#define UBRR   UBRR0L

Definition at line 151 of file avr.h.

Referenced by AhdlcAvrIOCtl(), and UartAvrIOCtl().

#define USR   UCSR0A

Definition at line 154 of file avr.h.

#define UCR   UCSR0B

Definition at line 157 of file avr.h.

Referenced by AhdlcAvrPut(), and NutInit().

#define EICR   EICRB

Definition at line 160 of file avr.h.

Referenced by AhdlcAvrInit(), CFChange(), IDEInit(), NutIrInitSony(), SJAInit(), and wlandrv_Init().

#define RXC   RXC0

Definition at line 163 of file avr.h.

#define UDRE   UDRE0

Definition at line 166 of file avr.h.

#define FE   FE0

Definition at line 169 of file avr.h.

#define DOR   DOR0

Definition at line 172 of file avr.h.

#define RXCIE   RXCIE0

Definition at line 175 of file avr.h.

#define TXCIE   TXCIE0

Definition at line 178 of file avr.h.

#define UDRIE   UDRIE0

Definition at line 181 of file avr.h.

Referenced by AhdlcAvrPut().

#define RXEN   RXEN0

Definition at line 184 of file avr.h.

Referenced by NutInit().

#define TXEN   TXEN0

Definition at line 187 of file avr.h.

Referenced by NutInit().


Variable Documentation

void* __heap_start


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/