generic: Move simulator/irq.h to new file generic/irq.h

Move the generic irq definitions into generic/irq.h and move the
simulator irq code into main.c.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-06-05 15:07:57 -04:00
parent 9f8817a47e
commit 73f3b0636a
4 changed files with 46 additions and 34 deletions

13
src/generic/pgm.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef __GENERIC_PGM_H
#define __GENERIC_PGM_H
// This header provides wrappers for the AVR specific "PROGMEM"
// declarations on non-avr platforms.
#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