<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic using the '@' directive , to assign a variable to specific address in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206441#M4874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To assign&amp;nbsp;a variable to a specific addresses, I tried using the &lt;A href="mailto:'@'" rel="nofollow" target="_blank"&gt;'@'&lt;/A&gt; directive as given below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int glob @0x0500 = 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives a compiler error which says:&lt;/P&gt;&lt;P&gt;"Expected ; instead of &lt;A href="mailto:'@'" rel="nofollow" target="_blank"&gt;'@'&lt;/A&gt; ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with the C99 &amp;amp; GCC extensions enabled in c/C++ Language settings tab. This did not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2009 13:55:15 GMT</pubDate>
    <dc:creator>lel_chen</dc:creator>
    <dc:date>2009-08-11T13:55:15Z</dc:date>
    <item>
      <title>using the '@' directive , to assign a variable to specific address</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206441#M4874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To assign&amp;nbsp;a variable to a specific addresses, I tried using the &lt;A href="mailto:'@'" rel="nofollow" target="_blank"&gt;'@'&lt;/A&gt; directive as given below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int glob @0x0500 = 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives a compiler error which says:&lt;/P&gt;&lt;P&gt;"Expected ; instead of &lt;A href="mailto:'@'" rel="nofollow" target="_blank"&gt;'@'&lt;/A&gt; ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with the C99 &amp;amp; GCC extensions enabled in c/C++ Language settings tab. This did not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 13:55:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206441#M4874</guid>
      <dc:creator>lel_chen</dc:creator>
      <dc:date>2009-08-11T13:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: using the '@' directive , to assign a variable to specific address</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206442#M4875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread really has nothing to do with MQX &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, you should define the varible as global i.e. outside your code body in the following format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;volatile type name @0xADDRESS;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Example copied from one of my 8 bit processors I happen to have open&lt;/P&gt;&lt;P&gt;volatile unsigned char __far NV_ICSTRM_FAR @0x0000FFBE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could always check the header files for definitions of the standard ports and copy those &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by CarlFST60L on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-08-11&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:21 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 05:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206442#M4875</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2009-08-12T05:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: using the '@' directive , to assign a variable to specific address</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206443#M4876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I hadnt declared it as a global - that was the mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 11:11:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/using-the-directive-to-assign-a-variable-to-specific-address/m-p/206443#M4876</guid>
      <dc:creator>lel_chen</dc:creator>
      <dc:date>2009-08-12T11:11:08Z</dc:date>
    </item>
  </channel>
</rss>

