<?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 Re: Syntax question in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195326#M7191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That code isn't valid C, it is written in the Codewarrior language. In C, you would have written:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define DDRS&amp;nbsp;&amp;nbsp; (*(volatile DDRSSTR*)(REG_BASE + 0x0000024AUL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's just one of many non-standard things in the register map. They made this non-standard @ solution because they couldn't figure out how to provide debug information of registers otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My advise is to throw the default CW register maps in the garbage bin and write new ones in C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 21:05:47 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2011-03-31T21:05:47Z</dc:date>
    <item>
      <title>Syntax question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195323#M7188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently downloaded CodeWarrior to start on a project for a&amp;nbsp;MC9S12XDP512. While I was looking through&amp;nbsp;MC9S12XDP512.h, I came across this line (21322):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;extern volatile DDRSSTR _DDRS @(REG_BASE + 0x0000024AUL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've never seen the @ character used in this way in C, and I haven't found a search engine that indexes '@', so I can't search for information. Is this a custom addition to CodeWarrior's C or preprocessor syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 04:42:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195323#M7188</guid>
      <dc:creator>GregDavies</dc:creator>
      <dc:date>2011-03-31T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195324#M7189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;taking a guess&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when defining like this - - - - I believe that the @ means the address of the variable is being defined, not the contents of the variable.&amp;nbsp;&amp;nbsp; Could be wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 05:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195324#M7189</guid>
      <dc:creator>Jim_P</dc:creator>
      <dc:date>2011-03-31T05:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195325#M7190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This construct is used to map a variable, in this case a hardware register,&amp;nbsp;to a specific address.&amp;nbsp; This usage is CW specific, and is extensively used within the device header files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 07:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195325#M7190</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-03-31T07:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195326#M7191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That code isn't valid C, it is written in the Codewarrior language. In C, you would have written:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define DDRS&amp;nbsp;&amp;nbsp; (*(volatile DDRSSTR*)(REG_BASE + 0x0000024AUL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's just one of many non-standard things in the register map. They made this non-standard @ solution because they couldn't figure out how to provide debug information of registers otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My advise is to throw the default CW register maps in the garbage bin and write new ones in C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 21:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195326#M7191</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2011-03-31T21:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195327#M7192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I was worried this was the case. I don't suppose Freescale supplies a set of gcc friendly register maps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 22:43:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-question/m-p/195327#M7192</guid>
      <dc:creator>GregDavies</dc:creator>
      <dc:date>2011-03-31T22:43:52Z</dc:date>
    </item>
  </channel>
</rss>

