aboutsummaryrefslogtreecommitdiffstats
path: root/src/simulator/pgm.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-05-25 11:37:40 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-05-25 11:37:40 -0400
commitf582a36e4df16d5709943f7df17a900c8bcc12ab (patch)
tree628d927c4f3e19e54618f7f47c7a44af66bf0c2f /src/simulator/pgm.h
parent37a91e9c10648208de002c75df304e23ca89e256 (diff)
downloadkutter-f582a36e4df16d5709943f7df17a900c8bcc12ab.tar.gz
kutter-f582a36e4df16d5709943f7df17a900c8bcc12ab.tar.xz
kutter-f582a36e4df16d5709943f7df17a900c8bcc12ab.zip
Initial commit of source code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/simulator/pgm.h')
-rw-r--r--src/simulator/pgm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/simulator/pgm.h b/src/simulator/pgm.h
new file mode 100644
index 00000000..e5f3787d
--- /dev/null
+++ b/src/simulator/pgm.h
@@ -0,0 +1,13 @@
+#ifndef __SIMU_PGM_H
+#define __SIMU_PGM_H
+// This header provides wrappers for the AVR specific "PROGMEM"
+// declarations.
+
+#define PROGMEM
+#define PSTR(S) S
+#define READP(VAR) VAR
+#define vsnprintf_P(D, S, F, A) vsnprintf(D, S, F, A)
+#define strcasecmp_P(S1, S2) strcasecmp(S1, S2)
+#define memcpy_P(DST, SRC, SIZE) memcpy((DST), (SRC), (SIZE))
+
+#endif // pgm.h