Nut/OS  5.0.5
API Reference
arm.h File Reference
#include <cfg/arch.h>
Include dependency graph for arm.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 Documentation

#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 PSTR (   p)    (p)
#define PRG_RDB (   p)    (*((const char *)(p)))
#define PGM_P   prog_char *
#define strlen_P (   x)    strlen((char *)(x))
#define strcpy_P (   x,
 
)    strcpy(x,(char *)(y))

Referenced by _putf(), and NutChat_P().

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

Referenced by NutFtpProcessRequest().

#define memcpy_P (   x,
  y,
 
)    memcpy(x, y, z)
#define _NOP ( )    __asm__ __volatile__ ("mov r0, r0 @ _NOP")
#define outw (   _reg,
  _val 
)    (*((volatile unsigned short *)(_reg)) = (_val))
#define inw (   _reg)    (*((volatile unsigned short *)(_reg)))
#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")

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.