Nut/OS  4.10.3
API Reference
avr.h File Reference
#include <arch/avr/gcc.h>
Include dependency graph for avr.h:
This graph shows which files directly or indirectly include this file:

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 106 of file avr.h.

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

Definition at line 114 of file avr.h.

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

Definition at line 117 of file avr.h.

#define inb (   sfr)    _SFR_BYTE(sfr)

Definition at line 120 of file avr.h.

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

Definition at line 123 of file avr.h.

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

Definition at line 126 of file avr.h.

#define inp (   sfr)    inb(sfr)

Definition at line 129 of file avr.h.

#define BV (   bit)    _BV(bit)

Definition at line 132 of file avr.h.

#define inw (   sfr)    _SFR_WORD(sfr)

Definition at line 135 of file avr.h.

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

Definition at line 138 of file avr.h.

#define PRG_RDB (   addr)    pgm_read_byte(addr)

Definition at line 141 of file avr.h.

#define __bss_end   __heap_start

Definition at line 144 of file avr.h.

#define UDR   UDR0

Definition at line 152 of file avr.h.

Referenced by UartAvrOutput().

#define UBRR   UBRR0L

Definition at line 155 of file avr.h.

Referenced by AhdlcAvrIOCtl(), and UartAvrIOCtl().

#define USR   UCSR0A

Definition at line 158 of file avr.h.

#define UCR   UCSR0B

Definition at line 161 of file avr.h.

Referenced by AhdlcAvrPut().

#define EICR   EICRB

Definition at line 164 of file avr.h.

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

#define RXC   RXC0

Definition at line 167 of file avr.h.

#define UDRE   UDRE0

Definition at line 170 of file avr.h.

#define FE   FE0

Definition at line 173 of file avr.h.

#define DOR   DOR0

Definition at line 176 of file avr.h.

#define RXCIE   RXCIE0

Definition at line 179 of file avr.h.

#define TXCIE   TXCIE0

Definition at line 182 of file avr.h.

#define UDRIE   UDRIE0

Definition at line 185 of file avr.h.

Referenced by AhdlcAvrPut().

#define RXEN   RXEN0

Definition at line 188 of file avr.h.

#define TXEN   TXEN0

Definition at line 191 of file avr.h.


Variable Documentation

void* __heap_start