mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
SITL: added pgm_read_dword() and pgm_read_float()
This commit is contained in:
parent
e9d0ae3e7f
commit
6245592447
@ -38,6 +38,8 @@ 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; }
|
||||
static inline uint32_t pgm_read_dword(const void *s) { return *(const uint32_t *)s; }
|
||||
static inline float pgm_read_float(const void *s) { return *(const float *)s; }
|
||||
|
||||
#define GETBYTE(flag, mask, pnt) ({ \
|
||||
unsigned char __c; \
|
||||
|
Loading…
Reference in New Issue
Block a user