#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>
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 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)) |
#define EEPROMread | ( | addr | ) | eeprom_read_byte((char *)(addr)) |
Definition at line 156 of file gcc.h.
Referenced by OnChipNvMemSave().
#define EEPROM_WRITE | ( | addr, | |
src | |||
) |
{ \ 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.
#define EEPROMWriteBytes | ( | addr, | |
ptr, | |||
size | |||
) |
{ \ unsigned short __i; \ for(__i = 0; __i < size; __i++) \ eeprom_write_byte(((char *)(addr)) + __i, *(((char *)(ptr)) + __i)); \ }