SITL: added pgm_read_byte_far()

This commit is contained in:
Andrew Tridgell 2012-03-11 20:58:39 +11:00
parent b4d69ef473
commit 42a29169f0

View File

@ -36,6 +36,7 @@ extern char *strncpy_P(char *dest, PGM_P src, size_t n);
extern void *memcpy_P(void *dest, PGM_P src, size_t n);
static inline uint8_t pgm_read_byte(PGM_P s) { return (uint8_t)*s; }
static inline uint8_t pgm_read_byte_far(const void *s) { return *(const uint8_t *)s; }
static inline uint16_t pgm_read_word(const void *s) { return *(const uint16_t *)s; }
#define GETBYTE(flag, mask, pnt) ({ \