Nut/OS  4.10.3
API Reference
gcc.h File Reference
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include <avr/eeprom.h>
#include <avr/pgmspace.h>
#include <avr/sleep.h>
#include <stdlib.h>
#include <compat/twi.h>
Include dependency graph for gcc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CONST   const
#define INLINE   inline
#define __SFR_OFFSET   0
#define COMPRESS_DISABLE
#define COMPRESS_REENABLE
#define _NOP()   __asm__ __volatile__ ("nop")
#define atof(s)   strtod(s, 0)
#define EEPROMReadBytes(addr, ptr, size)   eeprom_read_block((char *)(addr), ptr, size)
#define EEPROM_READ(addr, dst)   eeprom_read_block((char *)(addr), &dst, sizeof(dst))
 Read multibyte types from the EEPROM.
#define EEPROMread(addr)   eeprom_read_byte((char *)(addr))
#define EEPROM_WRITE(addr, src)
 Write multibyte types to the EEPROM.
#define EEPROMWriteBytes(addr, ptr, size)
#define main   NutAppMain

Define Documentation

#define CONST   const

Definition at line 68 of file gcc.h.

#define INLINE   inline

Definition at line 69 of file gcc.h.

#define __SFR_OFFSET   0

Definition at line 137 of file gcc.h.

#define COMPRESS_DISABLE

Definition at line 140 of file gcc.h.

#define COMPRESS_REENABLE

Definition at line 141 of file gcc.h.

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

Definition at line 144 of file gcc.h.

#define atof (   s)    strtod(s, 0)

Definition at line 148 of file gcc.h.

#define EEPROMReadBytes (   addr,
  ptr,
  size 
)    eeprom_read_block((char *)(addr), ptr, size)

Definition at line 151 of file gcc.h.

Referenced by OnChipNvMemLoad().

#define EEPROM_READ (   addr,
  dst 
)    eeprom_read_block((char *)(addr), &dst, sizeof(dst))

Read multibyte types from the EEPROM.

Definition at line 155 of file gcc.h.

#define EEPROMread (   addr)    eeprom_read_byte((char *)(addr))

Definition at line 156 of file gcc.h.

Referenced by OnChipNvMemSave().

#define EEPROM_WRITE (   addr,
  src 
)
Value:
{                                                                               \
    unsigned short __i;                                                         \
    for(__i = 0; __i < sizeof(src); __i++)                                      \
        eeprom_write_byte(((char *)(addr)) + __i, *(((char *)(&(src))) + __i)); \
}

Write multibyte types to the EEPROM.

Definition at line 161 of file gcc.h.

#define EEPROMWriteBytes (   addr,
  ptr,
  size 
)
Value:
{                                                                               \
    unsigned short __i;                                                         \
    for(__i = 0; __i < size; __i++)                                             \
        eeprom_write_byte(((char *)(addr)) + __i, *(((char *)(ptr)) + __i));    \
}

Definition at line 168 of file gcc.h.

#define main   NutAppMain

Definition at line 175 of file gcc.h.