diff --git a/utility/ATXMegaD3/RF24_arch_config.h b/utility/ATXMegaD3/RF24_arch_config.h index 3013544ff..53cc2f1af 100644 --- a/utility/ATXMegaD3/RF24_arch_config.h +++ b/utility/ATXMegaD3/RF24_arch_config.h @@ -27,6 +27,7 @@ #define __RF24_ARCH_CONFIG_H__ #include +#include #include "spi.h" #include "gpio.h" #include "compatibility.h" @@ -46,24 +47,25 @@ #define IF_SERIAL_DEBUG(x) #endif -// Avoid spurious warnings -#if 1 -#if ! defined( NATIVE ) && defined( ARDUINO ) -#undef PROGMEM -#define PROGMEM __attribute__(( section(".progmem.data") )) -#undef PSTR -#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];})) -#endif -#endif +// Use the avr pgmspace commands +//// Avoid spurious warnings +//#if 1 +//#if ! defined( NATIVE ) && defined( ARDUINO ) +//#undef PROGMEM +//#define PROGMEM __attribute__(( section(".progmem.data") )) +//#undef PSTR +//#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];})) +//#endif +//#endif typedef uint16_t prog_uint16_t; -#define PSTR(x) (x) -#define printf_P printf -#define strlen_P strlen -#define PROGMEM -#define pgm_read_word(p) (*(p)) +//#define PSTR(x) (x) +//#define printf_P printf +//#define strlen_P strlen +//#define PROGMEM +//#define pgm_read_word(p) (*(p)) #define PRIPSTR "%s" -#define pgm_read_byte(p) (*(p)) +//#define pgm_read_byte(p) (*(p)) // Function, constant map as a result of migrating from Arduino #define LOW GPIO::OUTPUT_LOW