Fix issue 4095 (#4503)

pgmspace.h missing 'pgm_get_far_address'
This commit is contained in:
M Hotchin 2020-11-07 18:55:59 -08:00 committed by GitHub
parent 486a4c66c4
commit 28a8073069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,8 @@ typedef unsigned long prog_uint32_t;
*(void * const *)(_addr); \
})
#define pgm_get_far_address(x) ((uint32_t)(&(x)))
#define pgm_read_byte_near(addr) pgm_read_byte(addr)
#define pgm_read_word_near(addr) pgm_read_word(addr)
#define pgm_read_dword_near(addr) pgm_read_dword(addr)