<?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 Microcontrollers中的主题 Re: Freescale USB Stack and C++</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178701#M1630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;with 'extern "C"' you need to mark interfaces you are calling from C++. So whatever you have compiled in C mode, and gets called by C++ code, needs to be marked with that extern "C".&lt;/P&gt;&lt;P&gt;As for the MSD stack, this would only apply to a few routines, I guess. It just depends how you structure your application and the interface to the stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2012 16:24:24 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2012-11-16T16:24:24Z</dc:date>
    <item>
      <title>Freescale USB Stack and C++</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178700#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a C++ application in which I'd like to use the Freescale USB stack, specifically the MSD class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From previous experience, I've had to decorate my C prototypes with &lt;STRONG&gt;extern "C"&lt;/STRONG&gt; in order for them to work in C++, due to the way the linker works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will I have to do exactly the same with &lt;STRONG&gt;all&lt;/STRONG&gt; routines that make up the USB stack? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 14:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178700#M1629</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2012-11-16T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Freescale USB Stack and C++</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178701#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;with 'extern "C"' you need to mark interfaces you are calling from C++. So whatever you have compiled in C mode, and gets called by C++ code, needs to be marked with that extern "C".&lt;/P&gt;&lt;P&gt;As for the MSD stack, this would only apply to a few routines, I guess. It just depends how you structure your application and the interface to the stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:24:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178701#M1630</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-16T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Freescale USB Stack and C++</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178702#M1631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done as you've mentioned and this works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2012 20:17:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-Stack-and-C/m-p/178702#M1631</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2012-11-24T20:17:25Z</dc:date>
    </item>
  </channel>
</rss>

