Added nonvolatile pointer macro
This commit is contained in:
parent
7f4ff61504
commit
b2af390c14
1 changed files with 4 additions and 0 deletions
|
@ -267,6 +267,10 @@
|
|||
#define RADIOLIB_NONVOLATILE PROGMEM
|
||||
#endif
|
||||
|
||||
#if !defined(RADIOLIB_NONVOLATILE_PTR)
|
||||
#define RADIOLIB_NONVOLATILE_PTR PGM_P
|
||||
#endif
|
||||
|
||||
#if !defined(RADIOLIB_NONVOLATILE_READ_BYTE)
|
||||
#define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue