avr32.h File Reference

Go to the source code of this file.

Defines

#define __BIG_ENDIAN__
#define CONST   const
#define INLINE   inline
#define PSTR(p)   (p)
#define PRG_RDB(p)   (*((const char *)(p)))
#define prog_char   const char
#define PGM_P   prog_char *
#define SIGNAL(x)   __attribute__((__interrupt__)) void x(void)
#define RAMFUNC   __attribute__ ((long_call, section (".ramfunc")))
#define main   NutAppMain
#define strlen_P(x)   strlen((char *)(x))
#define strcpy_P(x, y)   strcpy(x,(char *)(y))
#define strcmp_P(x, y)   strcmp((char *)(x), (char *)(y))
#define memcpy_P(x, y, z)   memcpy(x, y, z)
#define _NOP()   __asm__ __volatile__ ("nop")
#define outb(_reg, _val)   (*((volatile unsigned char *)(_reg)) = (_val))
#define outw(_reg, _val)   (*((volatile unsigned short *)(_reg)) = (_val))
#define outr(_reg, _val)   (*((volatile unsigned long *)(_reg)) = (_val))
#define inb(_reg)   (*((volatile unsigned char *)(_reg)))
#define inw(_reg)   (*((volatile unsigned short *)(_reg)))
#define inr(_reg)   (*((volatile unsigned long *)(_reg)))
#define _BV(bit)   (1 << (bit))
#define _SFR_MEM8(addr)   (addr)
#define _SFR_MEM16(addr)   (addr)
#define Get_system_register(sysreg)   __builtin_mfsr(sysreg)
 Gets the value of the sysreg system register.
#define Set_system_register(sysreg, value)   __builtin_mtsr(sysreg, value)
 Sets the value of the sysreg system register to value.

Variables

void * __bss_end
 End of uninitialized data segment. Defined in the linker script.


Define Documentation

#define __BIG_ENDIAN__

Definition at line 45 of file avr32.h.

#define CONST   const

Definition at line 49 of file avr32.h.

#define INLINE   inline

Definition at line 50 of file avr32.h.

#define PSTR (  )     (p)

Definition at line 60 of file avr32.h.

#define PRG_RDB (  )     (*((const char *)(p)))

Definition at line 61 of file avr32.h.

#define prog_char   const char

Definition at line 63 of file avr32.h.

#define PGM_P   prog_char *

Definition at line 64 of file avr32.h.

#define SIGNAL (  )     __attribute__((__interrupt__)) void x(void)

Definition at line 66 of file avr32.h.

#define RAMFUNC   __attribute__ ((long_call, section (".ramfunc")))

Definition at line 67 of file avr32.h.

#define main   NutAppMain

Definition at line 73 of file avr32.h.

#define strlen_P (  )     strlen((char *)(x))

Definition at line 76 of file avr32.h.

#define strcpy_P ( x,
 )     strcpy(x,(char *)(y))

Definition at line 77 of file avr32.h.

#define strcmp_P ( x,
 )     strcmp((char *)(x), (char *)(y))

Definition at line 79 of file avr32.h.

#define memcpy_P ( x,
y,
 )     memcpy(x, y, z)

Definition at line 80 of file avr32.h.

 
#define _NOP (  )     __asm__ __volatile__ ("nop")

Definition at line 92 of file avr32.h.

#define outb ( _reg,
_val   )     (*((volatile unsigned char *)(_reg)) = (_val))

Definition at line 98 of file avr32.h.

#define outw ( _reg,
_val   )     (*((volatile unsigned short *)(_reg)) = (_val))

Definition at line 99 of file avr32.h.

#define outr ( _reg,
_val   )     (*((volatile unsigned long *)(_reg)) = (_val))

Definition at line 100 of file avr32.h.

#define inb ( _reg   )     (*((volatile unsigned char *)(_reg)))

Definition at line 102 of file avr32.h.

#define inw ( _reg   )     (*((volatile unsigned short *)(_reg)))

Definition at line 103 of file avr32.h.

#define inr ( _reg   )     (*((volatile unsigned long *)(_reg)))

Definition at line 104 of file avr32.h.

#define _BV ( bit   )     (1 << (bit))

Definition at line 106 of file avr32.h.

#define _SFR_MEM8 ( addr   )     (addr)

Definition at line 112 of file avr32.h.

#define _SFR_MEM16 ( addr   )     (addr)

Definition at line 113 of file avr32.h.

#define Get_system_register ( sysreg   )     __builtin_mfsr(sysreg)

Gets the value of the sysreg system register.

Parameters:
sysreg Address of the system register of which to get the value.
Returns:
Value of the sysreg system register.

Definition at line 123 of file avr32.h.

#define Set_system_register ( sysreg,
value   )     __builtin_mtsr(sysreg, value)

Sets the value of the sysreg system register to value.

Parameters:
sysreg Address of the system register of which to set the value.
value Value to set the sysreg system register to.

Definition at line 135 of file avr32.h.


Variable Documentation

void* __bss_end

End of uninitialized data segment. Defined in the linker script.


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