<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Reading USER_FLASH?</title>
		<link>http://forums.leaflabs.com/topic.php?id=773</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:15:57 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=773" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Reading USER_FLASH?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=773#post-4603</link>
			<pubDate>Sat, 14 May 2011 17:36:51 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4603@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;robodude666,&#60;/p&#62;
&#60;p&#62;Yup, you can read it just like a regular variable.&#60;/p&#62;
&#60;p&#62;Also, there's a new convenience macro, &#34;__FLASH__&#34;, available in 0.0.10, so you can replace the above line with:&#60;/p&#62;
&#60;p&#62;static unsigned char font[] __FLASH__ = { ... };
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "Reading USER_FLASH?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=773#post-4601</link>
			<pubDate>Sat, 14 May 2011 15:08:58 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">4601@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Howdy,&#60;/p&#62;
&#60;p&#62;I'm in the process of converting my AVR code to work with my shiny new Maple r5 using libmaple. I have a font table that was previously stored in PROGMEM. According to the &#60;a href=&#34;http://leaflabs.com/docs/arm-gcc.html&#34;&#62;docs&#60;/a&#62; I should use something like:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;static unsigned char font[] __attribute__((section (&#38;quot;.USER_FLASH&#38;quot;))) =  { ... };&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Which seems to compile fine. Now, how exactly do I read it? Do I refer to &#60;code&#62;font&#60;/code&#62; as a regular variable, i.e.: &#60;code&#62;font[0]&#60;/code&#62; will return the first element, etc. ? Or is there a special function similar to &#60;code&#62;pgm_read_byte(..)&#60;/code&#62; ?&#60;/p&#62;
&#60;p&#62;-robodude666
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
