arm.h File Reference

Go to the source code of this file.

Defines

#define ARM_MODE_USER   0x10
#define ARM_MODE_FIQ   0x11
#define ARM_MODE_IRQ   0x12
#define ARM_MODE_SVC   0x13
#define ARM_MODE_ABORT   0x17
#define ARM_MODE_UNDEF   0x1B
#define ARM_MODE_SYS   0x1F
#define ARM_MODE_MASK   0x1F
#define I_BIT   0x80
#define F_BIT   0x40
#define T_BIT   0x20
#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_handler)) 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__ ("mov r0, r0")
#define outb(_reg, _val)   (*((volatile unsigned char *)(_reg)) = (_val))
#define outw(_reg, _val)   (*((volatile unsigned short *)(_reg)) = (_val))
#define outr(_reg, _val)   (*((volatile unsigned int *)(_reg)) = (_val))
#define inb(_reg)   (*((volatile unsigned char *)(_reg)))
#define inw(_reg)   (*((volatile unsigned short *)(_reg)))
#define inr(_reg)   (*((volatile unsigned int *)(_reg)))
#define _BV(bit)   (1 << (bit))
#define _SFR_MEM8(addr)   (addr)
#define _SFR_MEM16(addr)   (addr)

Variables

void * __bss_end
 End of uninitialised data segment. Defined in the linker script.
void * __stack
 Begin of the stack segment. Defined in the linker script.


Define Documentation

#define ARM_MODE_USER   0x10

Definition at line 110 of file arm.h.

#define ARM_MODE_FIQ   0x11

Definition at line 111 of file arm.h.

#define ARM_MODE_IRQ   0x12

Definition at line 112 of file arm.h.

#define ARM_MODE_SVC   0x13

Definition at line 113 of file arm.h.

Referenced by NutThreadCreate().

#define ARM_MODE_ABORT   0x17

Definition at line 114 of file arm.h.

#define ARM_MODE_UNDEF   0x1B

Definition at line 115 of file arm.h.

#define ARM_MODE_SYS   0x1F

Definition at line 116 of file arm.h.

#define ARM_MODE_MASK   0x1F

Definition at line 117 of file arm.h.

#define I_BIT   0x80

Definition at line 119 of file arm.h.

Referenced by NutThreadCreate().

#define F_BIT   0x40

Definition at line 120 of file arm.h.

Referenced by NutThreadCreate().

#define T_BIT   0x20

Definition at line 121 of file arm.h.

#define CONST   const

Examples:
caltime/caltime.c.

Definition at line 124 of file arm.h.

Referenced by _open(), AcePut(), AceWrite_P(), AhdlcAvrPut(), AhdlcAvrWrite_P(), basename(), DebugWrite(), dirname(), DS1307RamWrite(), ether_aton(), memchr(), memcmp(), opendir(), PhatDirDelEntry(), PhatDirEntryStatus(), PhatDirRenameEntry(), PhatFileOpen(), rename(), Sbbi0Transact(), Sppi0Transact(), stat(), stricmp(), strlen(), strncat(), strncpy(), strnicmp(), TermWrite_P(), UartAvrPut(), UartAvrWrite_P(), UsartWrite_P(), vsscanf(), vsscanf_P(), and X12EepromWrite().

#define INLINE   inline

Definition at line 125 of file arm.h.

#define PSTR (  )     (p)

Examples:
httpd/httpserv.c.

Definition at line 135 of file arm.h.

Referenced by cs8900Init(), cs8900Output(), CSNicInit(), CSNicOutput(), CSNICrx(), and ShowForm().

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

Definition at line 136 of file arm.h.

Referenced by AcePut(), AhdlcAvrPut(), NutDecodeBase64(), and UartAvrPut().

#define prog_char   const char

Examples:
httpd/httpserv.c, pppc/pppc.c, tcps/tcps.c, and uart/uart.c.

Definition at line 138 of file arm.h.

Referenced by NutChatExpectString(), NutDumpHeap(), NutDumpSocketList(), NutDumpTcpHeader(), NutDumpThreadList(), NutDumpThreadQueue(), NutDumpTimerList(), NutFtpRespondBad(), NutFtpRespondOk(), NutFtpSendMode(), NutHttpSendError(), NutHttpSendHeaderBot(), NutHttpSendHeaderTop(), NutTraceChat(), ShowForm(), VsBeep(), and VsMemoryTest().

#define PGM_P   prog_char *

Definition at line 139 of file arm.h.

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

Definition at line 141 of file arm.h.

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

Definition at line 142 of file arm.h.

#define main   NutAppMain

Examples:
caltime/caltime.c, canbus/candemo.c, cppdemo/cppdemo.cc, events/events.c, ftpd/ftpserv.c, httpd/httpserv.c, inetq/inetq.c, logtime/logtime.c, nutpiper/nutpiper.c, playmp3/playmp3.c, portdio/portdio.c, pppc/pppc.c, rs232d/rs232d.c, simple/simple.c, tcps/tcps.c, threads/threads.c, timers/timers.c, and uart/uart.c.

Definition at line 145 of file arm.h.

Referenced by NutIdle().

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

Definition at line 148 of file arm.h.

Referenced by _putf(), fputs_P(), NutChat_P(), vfprintf_P(), vfscanf_P(), vsprintf_P(), vsscanf_P(), and vsyslog_P().

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

Definition at line 149 of file arm.h.

Referenced by _putf(), and NutChat_P().

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

Definition at line 151 of file arm.h.

Referenced by NutFtpProcessRequest().

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

Definition at line 152 of file arm.h.

Referenced by NutTcpDeviceWrite_P(), vfprintf_P(), vfscanf_P(), vsprintf_P(), and vsscanf_P().

 
#define _NOP (  )     __asm__ __volatile__ ("mov r0, r0")

Definition at line 168 of file arm.h.

Referenced by Delay16Cycles(), NutDelay(), and VsPlayerReset().

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

Examples:
portdio/portdio.c.

Definition at line 174 of file arm.h.

Referenced by ADCSetChannel(), init_dio(), NplUledCntl(), NutIrInitSony(), NutRegisterTimer(), ProcessRequests(), SIG_OVERFLOW2(), Sppi0Byte(), Sppi0Enable(), TwInit(), TwIOCtl(), TwMasterTransact(), TwSlaveListen(), TwSlaveRespond(), VsPlayerInit(), and VsPlayerReset().

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

Definition at line 175 of file arm.h.

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

Definition at line 176 of file arm.h.

Referenced by AsixInit(), At91EfcCmd(), At91EfcSectorWrite(), At91Spi0Enable(), At91Spi0Init(), At91Spi0InitChipSelects(), At91SpiDisable(), At91SpiEnable(), At91SpiReset(), At91SpiSetBits(), At91SpiSetCsDelay(), At91SpiSetModeFlags(), At91SpiSetRate(), At91SpiSetSckDelay(), At91SpiSetTxDelay(), At91SpiTransfer2(), At91WatchDogDisable(), At91WatchDogEnable(), At91WatchDogRestart(), At91WatchDogStart(), EmacOutput(), McuInit(), NplRegisterIrqHandler(), NutInit(), NutRegisterTimer(), TwInit(), TwIOCtl(), and TwMasterTransact().

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

Examples:
portdio/portdio.c.

Definition at line 178 of file arm.h.

Referenced by ADCSetChannel(), NplUledCntl(), NplUledStatus(), NutRegisterTimer(), ProcessRequests(), SIG_INTERRUPT4(), Sppi0Byte(), Sppi0Enable(), TwIOCtl(), TwMasterTransact(), TwSlaveListen(), and TwSlaveRespond().

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

Definition at line 179 of file arm.h.

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

Definition at line 180 of file arm.h.

Referenced by At91EfcCmd(), At91EfcSectorWrite(), At91SpiGetBits(), At91SpiGetCsDelay(), At91SpiGetModeFlags(), At91SpiGetSckDelay(), At91SpiGetTxDelay(), At91SpiSetBits(), At91SpiSetCsDelay(), At91SpiSetModeFlags(), At91SpiSetRate(), At91SpiSetSckDelay(), At91SpiSetTxDelay(), At91SpiTransfer2(), At91WatchDogDisable(), At91WatchDogEnable(), EmacOutput(), NutGetTickClock(), NutRegisterTimer(), and TwIOCtl().

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

Definition at line 182 of file arm.h.

Referenced by ADCStartLowNoiseConversion(), AsixInit(), At45dbInit(), At91Spi0Init(), At91Spi0InitChipSelects(), AtCanEnableMsgObj(), AtCanGetBusState(), AtCanGetFreeMob(), AtCanInit(), AtCanSendMsg(), DebugInit(), IDEInit(), NplRegisterIrqHandler(), NutIdle(), NutRegisterTimer(), SIG_INTERRUPT4(), Sppi0Enable(), Sppi0SetMode(), Sppi0SetSpeed(), TwInit(), TwMasterTransact(), TwSlaveListen(), and TwSlaveRespond().

#define _SFR_MEM8 ( addr   )     (addr)

Definition at line 188 of file arm.h.

#define _SFR_MEM16 ( addr   )     (addr)

Definition at line 189 of file arm.h.


Variable Documentation

void* __bss_end

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

void* __stack

Begin of the stack segment. Defined in the linker script.


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