tixiv
16 years ago
6 changed files with 25 additions and 14 deletions
@ -0,0 +1,11 @@ |
|||
//pc compatibility of AVR-pgmspace stuff for compiling simulator
|
|||
|
|||
#ifdef AVR |
|||
#include <avr/pgmspace.h> |
|||
#else |
|||
#define PROGMEM |
|||
#define strcpy_P strcpy |
|||
#define memcpy_P memcpy |
|||
#define pgm_read_byte(a) ((*(uint8_t*)(a))) |
|||
#define pgm_read_word(a) ((*(uint16_t*)(a))) |
|||
#endif |
Loading…
Reference in new issue