6 #ifndef ACE_TIME_COMMON_COMPAT_H 7 #define ACE_TIME_COMMON_COMPAT_H 22 #define ACE_TIME_USE_PROGMEM 1 23 #if ACE_TIME_USE_PROGMEM 24 #define ACE_TIME_PROGMEM PROGMEM 26 #define ACE_TIME_PROGMEM 32 #if defined(ARDUINO_ARCH_AVR) 33 #include <avr/pgmspace.h> 34 #define FPSTR(p) (reinterpret_cast<const __FlashStringHelper *>(p)) 35 #define acetime_strcmp_P strcmp_P 37 #elif defined(ARDUINO_ARCH_SAMD) 38 #include <avr/pgmspace.h> 39 #define FPSTR(p) (reinterpret_cast<const __FlashStringHelper *>(p)) 43 #define acetime_strcmp_P strcmp 48 #define ACE_TIME_CLOBBER_SERIAL_PORT_MONITOR 0 49 #if ACE_TIME_CLOBBER_SERIAL_PORT_MONITOR && defined(ARDUINO_SAMD_ZERO) 50 #undef SERIAL_PORT_MONITOR 51 #define SERIAL_PORT_MONITOR SerialUSB 54 #elif defined(TEENSYDUINO) 55 #include <avr/pgmspace.h> 56 #define FPSTR(p) (reinterpret_cast<const __FlashStringHelper *>(p)) 59 #define acetime_strcmp_P strcmp 61 #elif defined(ESP8266) 66 inline int acetime_strcmp_P(
const char* str1,
const char* str2P) {
67 return strcmp_P((str1), (str2P));
72 const char* strchr_P(
const char* s,
int c);
73 const char* strrchr_P(
const char* s,
int c);
81 #define FPSTR(p) (reinterpret_cast<const __FlashStringHelper *>(p)) 82 #define acetime_strcmp_P strcmp_P 86 const char* strchr_P(
const char* s,
int c);
87 const char* strrchr_P(
const char* s,
int c);
91 #define SERIAL_PORT_MONITOR Serial 93 #elif defined(__linux__) or defined(__APPLE__) 95 #define FPSTR(p) (reinterpret_cast<const __FlashStringHelper *>(p)) 96 #define acetime_strcmp_P strcmp_P 97 #define SERIAL_PORT_MONITOR Serial 100 #error Unsupported platform int acetime_strcmp_PP(const char *a, const char *b)
Compare 2 strings in flash memory.