energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
793 stars 673 forks source link

Fixup avr/pgmspace.h macros for CC3200 #455

Closed robertinant closed 9 years ago

robertinant commented 10 years ago

See http://forum.43oh.com/topic/5768-cc3200-and-pgmspacehprogmem/?p=50320 as per igor's post..

rei-vilo commented 10 years ago

Maybe add also F() for compatibility with Arduino

Version 1.0 of the Arduino IDE introduced the F() syntax for storing strings in flash memory rather than RAM. e.g.

Serial.println(F("This string will be stored in flash memory"));

See at he Arduino website.

robertinant commented 9 years ago

I have checked in the avr specific header files to make porting applications easier.

https://github.com/energia/Energia/commit/cafa204a33e6e0dfa65b2f97dd14792a5964837e

robertinant commented 9 years ago

The F() macro is already included in WString.h