<?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>Kinetis Software Development Kit中的主题 Global variable declaration</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407082#M1732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m new to KDS/KSDK, Where I define global variable that will be seen by main.c , event.c&amp;nbsp; and maybe in future by other files in the project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 19:58:09 GMT</pubDate>
    <dc:creator>shauldorf</dc:creator>
    <dc:date>2015-07-13T19:58:09Z</dc:date>
    <item>
      <title>Global variable declaration</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407082#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m new to KDS/KSDK, Where I define global variable that will be seen by main.c , event.c&amp;nbsp; and maybe in future by other files in the project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407082#M1732</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2015-07-13T19:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable declaration</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407083#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello shaul dorf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is more a C programming question than a question related to KDS or KSDK. If a global variable is to be seen by several source files, you have to define it in one of your &lt;STRONG&gt;.c&lt;/STRONG&gt; source files and declare it as &lt;STRONG&gt;extern&lt;/STRONG&gt; in a header file. Then include such header file from any source file that needs to "see" the global variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I misunderstood your question please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 00:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407083#M1733</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-07-14T00:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable declaration</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407084#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge Thanks;&lt;/P&gt;&lt;P&gt;I already did it and it is working. I’m hardware oriented, I&lt;BR /&gt;have seen that PE generates many files so I thought that it can be done automatically&lt;BR /&gt;based on information in main.c file&lt;/P&gt;&lt;P&gt;But in second thinking it is a nonsense because only the programmers&lt;BR /&gt;knows in which file this extern definition has to be placed.&lt;/P&gt;&lt;P&gt;Any way thanks for your help to finally understand it.&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 18:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Global-variable-declaration/m-p/407084#M1734</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2015-07-14T18:55:30Z</dc:date>
    </item>
  </channel>
</rss>

