mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
SITL: added pgm_read_byte_far()
This commit is contained in:
parent
b4d69ef473
commit
42a29169f0
@ -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) ({ \
|
||||
|
Loading…
Reference in New Issue
Block a user