Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18089

Re: Missing avr/pgmspace.h

$
0
0

+1 on KurtE's answer, which is similar to one I posted on another forum a couple of days ago:

 

Here's perhaps a better solution that avoids having to doctor third-party libraries: use an alternative implementation of pgmspace.h.  Here is a version borrowed from the Teensy3 Arduino distribution.  The CPU in the Teensy3, like the x86, doesn't have separate instruction/data address spaces--the so-called "Harvard Architecture" of the AVR micros.  So its implementation of pgmspace.h simply casts it all away, making pgm_read_byte_near, for example, a simple pointer dereference.

Instructions:

At this point you should be able to compile code that depends on #include <avr/pgmspace.h>


Viewing all articles
Browse latest Browse all 18089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>