1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Stub for memcpy_P() on non-AVR platforms

This commit is contained in:
Rhys Weatherley 2015-01-09 19:35:49 +10:00
parent c86330b40c
commit 0640fdf518

View File

@ -26,10 +26,12 @@
#if defined(__AVR__)
#include <avr/pgmspace.h>
#else
#include <string.h>
#define PROGMEM
#define pgm_read_byte(x) (*(x))
#define pgm_read_word(x) (*(x))
#define pgm_read_dword(x) (*(x))
#define memcpy_P(d,s,l) memcpy((d), (s), (l))
#endif
#endif