<?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: stdint.h versus stdbool.h in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/stdint-h-versus-stdbool-h/m-p/737021#M9481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Processor Expert types are in PE_Types.h. There you can see that it includes &amp;lt;stdint.h&amp;gt;.&lt;/P&gt;&lt;P&gt;It does not include &amp;lt;stdbool.h&amp;gt; there which can lead to problems with conflicting bool types.&lt;/P&gt;&lt;P&gt;The thing is that 'bool' needs to be included before PE_Types.h, otherwise you get conflicts.&lt;/P&gt;&lt;P&gt;What I usually do is to include stdbool.h before each compilation unit. In KDS I'm using the -include compiler option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34309i07CD5CBD40846716/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Nov 2017 07:09:08 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2017-11-26T07:09:08Z</dc:date>
    <item>
      <title>stdint.h versus stdbool.h</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/stdint-h-versus-stdbool-h/m-p/737020#M9480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using KDS 3.2.0, PE Micro, and FRDM-K22F.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not clear when stdint.h is used or stdbool.h should be used.&amp;nbsp; I'm assuming Processor Expert added the stdint.h file to my program, but I was thinking stdbool.h would have been used.&amp;nbsp; stdint.h works, I have not problem, but I wondering when is the appropriate time when stdbool.h should be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 20:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/stdint-h-versus-stdbool-h/m-p/737020#M9480</guid>
      <dc:creator>briancavanagh</dc:creator>
      <dc:date>2017-11-25T20:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: stdint.h versus stdbool.h</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/stdint-h-versus-stdbool-h/m-p/737021#M9481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Processor Expert types are in PE_Types.h. There you can see that it includes &amp;lt;stdint.h&amp;gt;.&lt;/P&gt;&lt;P&gt;It does not include &amp;lt;stdbool.h&amp;gt; there which can lead to problems with conflicting bool types.&lt;/P&gt;&lt;P&gt;The thing is that 'bool' needs to be included before PE_Types.h, otherwise you get conflicts.&lt;/P&gt;&lt;P&gt;What I usually do is to include stdbool.h before each compilation unit. In KDS I'm using the -include compiler option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34309i07CD5CBD40846716/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 07:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/stdint-h-versus-stdbool-h/m-p/737021#M9481</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-11-26T07:09:08Z</dc:date>
    </item>
  </channel>
</rss>

