Go to the source code of this file.
++Macros | |
+#define | FPSTR(p) (reinterpret_cast<const __FlashStringHelper *>(p)) |
A macro that converts a const char* that already points to a PROGMEM string to a const __FlashStringHelper* which can be passed to overloaded functions and methods. | |
Various macros to smooth over the differences among the various platforms with regards to their support for flash strings and the various macros used to create and access them.
Copied from AUnit/src/aunit/Flash.h and AceTime/src/ace_time/common/compat.h.
We support flash strings (F() macro) for AVR because those MCUs have very small static RAM (1-2kB). Prior to v1.0, we disabled F() for ESP8266 because those implementations were buggy. But it seems that recent ESP8266 cores (v2.5 and higher) seems to have fixed the problems with F(), so I have reactivated it. The F() is automatically a no-op for Teensy and ESP32.
-The FPSTR() macro is a useful macro that was originally created on the ESP8266. But it was incorrectly implemented on the ESP32, until https://github.com/espressif/arduino-esp32/issues/1371 is fixed (hopefully by v1.0.3).
+The FPSTR() macro is a useful macro that was originally created on the ESP8266. But it was incorrectly implemented on the ESP32, until https://github.com/espressif/arduino-esp32/issues/1371 is fixed (hopefully by v1.0.3).
Definition in file compat.h.