<?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のトピックRe: printf redirection</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/printf-redirection/m-p/493115#M4491</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;You may find similar definition in the following header file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35713iA2E39B5D8ACFD3BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 07:02:58 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2015-12-21T07:02:58Z</dc:date>
    <item>
      <title>printf redirection</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/printf-redirection/m-p/493114#M4490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I'm porting my old MQX project on KSDK. &lt;/P&gt;&lt;P&gt;In the previous version, we had modified fio.h file from:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;#define&amp;nbsp; ioctl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _io_ioctl&amp;nbsp; #define&amp;nbsp; printf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _io_printf #define&amp;nbsp; putc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _io_fputc&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;#define&amp;nbsp; ioctl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _io_ioctl&amp;nbsp; #if defined(MQX_USES_MY_PRINTF) &amp;amp;&amp;amp; MQX_USES_MY_PRINTF == 1 &amp;nbsp;&amp;nbsp; #define&amp;nbsp; printf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_printf #else &amp;nbsp;&amp;nbsp; #define&amp;nbsp; printf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _io_printf #endif #define&amp;nbsp; putc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _io_fputc&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where MQX_USES_MY_PRINTF was defined in user_config.h.&lt;/P&gt;&lt;P&gt;This is beacuse we used a custom printf function which, in addition to performing the classic _io_printf, sent the string to the Bluetooth_Task for wireless transmission. Now fio.h file is no more present. &lt;/P&gt;&lt;P&gt;Is there a way to replicate this redirection? The new function shall be called by EVERY printf in my working set, like usb or nshell project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:57:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/printf-redirection/m-p/493114#M4490</guid>
      <dc:creator>mircopizzichini</dc:creator>
      <dc:date>2015-12-17T11:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: printf redirection</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/printf-redirection/m-p/493115#M4491</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;You may find similar definition in the following header file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35713iA2E39B5D8ACFD3BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 07:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/printf-redirection/m-p/493115#M4491</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-12-21T07:02:58Z</dc:date>
    </item>
  </channel>
</rss>

