#include <cfg/arch.h>
Go to the source code of this file.
Defines | |
#define | CONST const |
#define | INLINE inline |
#define | SIGNAL(x) __attribute__((interrupt_handler)) void x(void) |
Interrupt handler function definition. | |
#define | RAMFUNC __attribute__ ((long_call, section (".ramfunc"))) |
Function running in RAM. | |
#define | main NutAppMain |
#define | PSTR(p) (p) |
#define | PRG_RDB(p) (*((const char *)(p))) |
#define | prog_char const char |
#define | PGM_P prog_char * |
#define | strlen_P(x) strlen((char *)(x)) |
#define | strcpy_P(x, y) strcpy(x,(char *)(y)) |
#define | strcat_P(x, y) strcat(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 @ _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 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 | sbi(_reg, _bit) outr(_reg, inr(_reg) | _BV(_bit)) |
#define | cbi(_reg, _bit) outr(_reg, inr(_reg) & ~_BV(_bit)) |
#define | bit_is_set(_reg, _bit) ((inr(_reg) & _BV(_bit)) != 0) |
#define | _SFR_MEM8(addr) (addr) |
#define | _SFR_MEM16(addr) (addr) |
#define | mem_barrier() __asm__ __volatile__("":::"memory") |
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 CONST const |
#define INLINE inline |
#define SIGNAL | ( | x | ) | __attribute__((interrupt_handler)) void x(void) |
Interrupt handler function definition.
#define RAMFUNC __attribute__ ((long_call, section (".ramfunc"))) |
Function running in RAM.
This section will be copied to RAM during runtime initialization.
#define main NutAppMain |
Referenced by NutIdle().
#define PSTR | ( | p | ) | (p) |
Referenced by cs8900Init(), cs8900Output(), CSNicInit(), CSNicOutput(), CSNICrx(), and ShowForm().
#define PRG_RDB | ( | p | ) | (*((const char *)(p))) |
Referenced by AcePut(), AhdlcAt91Put(), AhdlcAvrPut(), AhdlcRx(), NutDecodeBase64(), NutEncodeBase64(), and UartAvrPut().
#define prog_char const char |
Referenced by NutChatExpectString(), NutDumpHeap(), NutDumpSocketList(), NutDumpTcpHeader(), NutDumpThreadList(), NutDumpThreadQueue(), NutDumpTimerList(), NutFtpDataConnect(), NutFtpProcessPassiv(), NutFtpProcessPwd(), NutFtpProcessSystem(), NutFtpRespondBad(), NutFtpRespondOk(), NutFtpSendMode(), NutFtpTransferDirectoryOptions(), NutFtpTransferFile(), NutHttpSendError(), NutHttpSendHeaderTop(), NutTraceChat(), ShowForm(), VsBeep(), and VsMemoryTest().
#define PGM_P prog_char * |
Referenced by _putf(), NutBlockDeviceWrite_P(), and sscanf_P().
#define strlen_P | ( | x | ) | strlen((char *)(x)) |
Referenced by _putf(), fputs_P(), NutChat_P(), vfprintf_P(), vfscanf_P(), vsprintf_P(), vsscanf_P(), and vsyslog_P().
#define strcpy_P | ( | x, | |
y | |||
) | strcpy(x,(char *)(y)) |
Referenced by _putf(), and NutChat_P().
#define strcat_P | ( | x, | |
y | |||
) | strcat(x,(char *)(y)) |
#define strcmp_P | ( | x, | |
y | |||
) | strcmp((char *)(x), (char *)(y)) |
Referenced by NutFtpProcessRequest().
#define memcpy_P | ( | x, | |
y, | |||
z | |||
) | memcpy(x, y, z) |
Referenced by NutTcpDeviceWrite_P(), vfprintf_P(), vfscanf_P(), vsprintf_P(), and vsscanf_P().
#define _NOP | ( | ) | __asm__ __volatile__ ("mov r0, r0 @ _NOP") |
Referenced by Delay16Cycles(), NutMicroDelay(), and VsPlayerReset().
#define outb | ( | _reg, | |
_val | |||
) | (*((volatile unsigned char *)(_reg)) = (_val)) |
Referenced by ADCSetChannel(), AhdlcAvrIOCtl(), At91SpiBus0Interrupt(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), CSNicInit(), GpioPortConfigSet(), GpioPortSet(), NplSpiBusPollTransfer(), NplUledCntl(), NutIrInitSony(), NutRegisterTimer(), NutRegisterTwiBus(), NutTwiMasterRegWrite(), NutTwiMasterTranceive(), NutTwiSetSpeed(), NutTwiSlaveListen(), NutTwiSlaveRespond(), SIG_OVERFLOW2(), SpiFlashEnable(), Sppi0Byte(), Sppi0Enable(), UartAvrOutput(), VsPlayerInit(), and VsPlayerReset().
#define outw | ( | _reg, | |
_val | |||
) | (*((volatile unsigned short *)(_reg)) = (_val)) |
#define outr | ( | _reg, | |
_val | |||
) | (*((volatile unsigned int *)(_reg)) = (_val)) |
Referenced by __init2(), ADCDisableChannel(), ADCEnableChannel(), ADCInit(), ADCSetMode(), ADCSetPrescale(), ADCStartConversion(), AhdlcAt91Init(), AhdlcAt91IOCtl(), AhdlcAt91Open(), AhdlcAt91Put(), AsixInit(), At91DevDebugIOCtl(), At91EfcCmdEx(), At91EfcSectorWrite(), At91Reset(), At91Spi0Enable(), At91Spi0Init(), At91Spi0InitChipSelects(), At91SpiBus0Deselect(), At91SpiBus0Select(), At91SpiBus0Transfer(), At91SpiBusNodeInit(), At91SpiDisable(), At91SpiEnable(), At91SpiReset(), At91SpiSetBits(), At91SpiSetCsDelay(), At91SpiSetModeFlags(), At91SpiSetRate(), At91SpiSetSckDelay(), At91SpiSetTxDelay(), At91SpiTransfer2(), At91TwiInit(), At91WatchDogDisable(), At91WatchDogEnable(), At91WatchDogRestart(), At91WatchDogStart(), Avr32FlashcCmd(), Avr32SpiBus0Interrupt(), Avr32SpiBus0Select(), Avr32SpiBus0Transfer(), Avr32SpiBus1Interrupt(), Avr32SpiBus1Select(), Avr32SpiBus1Transfer(), Avr32SpiBusNodeInit(), EmacOutput(), EmacRxThread(), FeederThread(), GpioPinSetHigh(), GpioPinSetLow(), GpioPortConfigSet(), GpioPortSetHigh(), GpioPortSetLow(), McuInit(), NicRxLanc(), NplRegisterIrqHandler(), NutBoardInit(), NutInit(), NutRegisterTimer(), NutTwiMasterRegRead(), NutTwiMasterRegWrite(), NutTwiMasterTranceive(), NutTwiSetSpeed(), and SscSpiBus0Interrupt().
#define inb | ( | _reg | ) | (*((volatile unsigned char *)(_reg))) |
Referenced by ADCSetChannel(), AhdlcAvrIOCtl(), At91SpiBus0Interrupt(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), CSNicInit(), GpioPinConfigGet(), GpioPortConfigSet(), GpioPortGet(), NplSpiBusPollTransfer(), NplUledCntl(), NplUledStatus(), NutRegisterTimer(), NutTwiGetSpeed(), NutTwiMasterTranceive(), NutTwiSlaveListen(), NutTwiSlaveRespond(), SIG_INTERRUPT4(), Sppi0Byte(), Sppi0Enable(), and VsPlayerInit().
#define inw | ( | _reg | ) | (*((volatile unsigned short *)(_reg))) |
#define inr | ( | _reg | ) | (*((volatile unsigned int *)(_reg))) |
Referenced by ADCEnableChannel(), ADCSetMode(), ADCSetPrescale(), AhdlcAt91IOCtl(), At91EfcCmdEx(), At91EfcSectorWrite(), At91ResetCause(), At91SpiGetBits(), At91SpiGetCsDelay(), At91SpiGetModeFlags(), At91SpiGetSckDelay(), At91SpiGetTxDelay(), At91SpiSetBits(), At91SpiSetCsDelay(), At91SpiSetModeFlags(), At91SpiSetRate(), At91SpiSetSckDelay(), At91SpiSetTxDelay(), At91SpiTransfer2(), At91WatchDogDisable(), At91WatchDogEnable(), Avr32SpiBus0Interrupt(), Avr32SpiBus0Transfer(), Avr32SpiBus1Interrupt(), Avr32SpiBus1Transfer(), Avr32SpiBusWait(), EmacOutput(), EmacRxThread(), GpioPinConfigGet(), GpioPinGet(), GpioPortGet(), NutBoardInit(), NutGetTickClock(), NutRegisterTimer(), NutTwiGetSpeed(), and SscSpiBus0Interrupt().
#define _BV | ( | bit | ) | (1 << (bit)) |
Referenced by ADCDisableChannel(), ADCEnableChannel(), ADCInit(), ADCStartLowNoiseConversion(), AhdlcAt91Init(), AsixInit(), At45dbInit(), At91Spi0Init(), At91Spi0InitChipSelects(), At91SpiBus0Select(), At91TwiInit(), AtCanEnableMsgObj(), AtCanGetBusState(), AtCanGetFreeMob(), AtCanInit(), AtCanSendMsg(), Avr32Spi0Init(), AvrSpiBus0Select(), AvrSpiSetup(), DebugInit(), FeederThread(), GpioPinConfigGet(), GpioPinConfigSet(), GpioPinGet(), GpioPinSetHigh(), GpioPinSetLow(), GpioPortConfigSet(), IDEInit(), Lpc177x_8x_EepromRead(), Lpc177x_8x_EepromWrite(), Lpc177x_8x_EmcDynMemConfigAM(), Lpc177x_8x_EmcSDRAMInit(), Lpc177x_8x_EmcStaticMemConfigpP(), NicRxLanc(), NplRegisterIrqHandler(), NutArchClockGet(), NutBoardInit(), NutIdle(), NutPwmStartChannel(), NutPwmStopChannel(), NutRegisterTimer(), NutRegisterTwiBus(), NutTwiMasterTranceive(), NutTwiSlaveListen(), NutTwiSlaveRespond(), SIG_INTERRUPT4(), Sppi0Enable(), Sppi0SetMode(), Sppi0SetSpeed(), Stm32I2cBus1Init(), and Stm32I2cBus1Recover().
#define sbi | ( | _reg, | |
_bit | |||
) | outr(_reg, inr(_reg) | _BV(_bit)) |
Referenced by AceInit(), ADCInit(), ADCSetMode(), ADCSetPrescale(), ADCSetRef(), ADCStartConversion(), ADCStartLowNoiseConversion(), ADCStopConversion(), AhdlcAvrClose(), AhdlcAvrInit(), AhdlcAvrPut(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), GpioPinConfigSet(), GpioPinSetHigh(), IDEInit(), NicInit(), NicRx(), NicRxLanc(), NutIdle(), NutIrInitSony(), NutRegisterTimer(), NutTwiSetSpeed(), SIG_INTERRUPT4(), SJAInit(), SpiDigitalGet(), SpiDigitalInit(), SpiDigitalSet(), SpiFlashEnable(), Sppi0Enable(), VsPlayerInit(), VsPlayerReset(), and wlandrv_Init().
#define cbi | ( | _reg, | |
_bit | |||
) | outr(_reg, inr(_reg) & ~_BV(_bit)) |
Referenced by ADCSetMode(), ADCSetPrescale(), ADCSetRef(), ADCStopConversion(), AhdlcAvrInit(), AhdlcAvrOpen(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), GpioPinConfigSet(), GpioPinSetLow(), LancInit(), NicInit(), NicRx(), NutIdle(), NutIrInitSony(), NutTwiSetSpeed(), SIG_INTERRUPT4(), SIG_OVERFLOW2(), SJAInit(), SpiDigitalGet(), SpiDigitalInit(), SpiDigitalSet(), SpiFlashEnable(), Sppi0Enable(), VsPlayerInit(), and VsPlayerReset().
#define bit_is_set | ( | _reg, | |
_bit | |||
) | ((inr(_reg) & _BV(_bit)) != 0) |
Referenced by AtCanGetFreeMob(), GpioPinGet(), NutIdle(), NutTwiGetSpeed(), SpiDigitalGet(), and UartAvrIOCtl().
#define _SFR_MEM8 | ( | addr | ) | (addr) |
#define _SFR_MEM16 | ( | addr | ) | (addr) |
#define mem_barrier | ( | ) | __asm__ __volatile__("":::"memory") |
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.