00001
00049 #ifndef COMMON_H
00050 #define COMMON_H
00051
00052 #include <ioavr.h>
00053 #include <inavr.h>
00054 #include <stdbool.h>
00055
00056
00057
00058 typedef signed char int8_t;
00059 typedef unsigned char uint8_t;
00060 typedef short int16_t;
00061 typedef unsigned short uint16_t;
00062 typedef long int32_t;
00063 typedef unsigned long uint32_t;
00064
00065 typedef uint8_t byte;
00066
00067
00068
00070 void copyBytes( byte * destination, const byte * source, byte count);
00072 void addConstant( byte * bytes, const byte * constant, byte count );
00074 void addConstantFromEEPROM( byte * bytes,
00075 const byte __eeprom * constant, byte count );
00077 void copyBytesToEEPROM( byte __eeprom * destination,
00078 const byte * source, byte count );
00080 void copyBytesFromEEPROM( byte * destination,
00081 const byte __eeprom * source, byte count );
00082
00083
00084
00085 #endif
00086