<?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: printf with void TERMIO_PutString(const char *p) (mc9s12dp256) in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210103#M8239</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 is just a function prototype for a function that can be called by printf to write output to stdout as a whole string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idea here is that printf is ready to support that as soon as a programmer implements such a function.&lt;/P&gt;&lt;P&gt;As stated in my previous email the fact that you want to send the whole string at once is probably a requirement from the device you want to use for stdout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you need to write the driver for that device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SCI we are using as stdout in TermIO.c can only transfer one character at a time. So there is no reason for implementing a PutString function there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 15:00:29 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2009-08-26T15:00:29Z</dc:date>
    <item>
      <title>printf  with  void TERMIO_PutString(const char *p)      (mc9s12dp256)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210100#M8236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;I am trying to use printf function. It works with “void TERMIO_PutChar(char ch);”, but I need whole string at once. So, I want to use this function: “void TERMIO_PutString(const char *p);”. It doesn’t work even I define this string: “_TERMIO_HAS_PUT_STRING_”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;The original function definition in TERMIO.h:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;
#ifdef _TERMIO_HAS_PUT_STRING_
&amp;nbsp; void TERMIO_PutString(const char *p);
#endif&lt;/PRE&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;I tried somethnig like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;
void TERMIO_PutString(const char *p){
&amp;nbsp; while(*p){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vSCI0_send( (signed char) *p);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p++;
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Excuse my English.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 15:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210100#M8236</guid>
      <dc:creator>Snail_cz</dc:creator>
      <dc:date>2009-08-25T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: printf with void TERMIO_PutString(const char *p) (mc9s12dp256)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210101#M8237</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;THere is no implementation of TERMIO_PutString available in the layout.&lt;/P&gt;&lt;P&gt;You have to implement it yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need ability to send the whole string at once, you are probably using something else as a SCI as standard output.&lt;/P&gt;&lt;P&gt;In this case you need to write the low level function for your peripheral yourself.&lt;/P&gt;&lt;P&gt;Implementation will depend on the peripheral used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210101#M8237</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-08-25T19:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: printf  with  void TERMIO_PutString(const char *p)      (mc9s12dp256)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210102#M8238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ok, thank you.&lt;/P&gt;&lt;P&gt;And do you know why in this file (TERMIO.h) is a definition for this function ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210102#M8238</guid>
      <dc:creator>Snail_cz</dc:creator>
      <dc:date>2009-08-25T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: printf with void TERMIO_PutString(const char *p) (mc9s12dp256)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210103#M8239</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 is just a function prototype for a function that can be called by printf to write output to stdout as a whole string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idea here is that printf is ready to support that as soon as a programmer implements such a function.&lt;/P&gt;&lt;P&gt;As stated in my previous email the fact that you want to send the whole string at once is probably a requirement from the device you want to use for stdout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you need to write the driver for that device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SCI we are using as stdout in TermIO.c can only transfer one character at a time. So there is no reason for implementing a PutString function there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 15:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/printf-with-void-TERMIO-PutString-const-char-p-mc9s12dp256/m-p/210103#M8239</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-08-26T15:00:29Z</dc:date>
    </item>
  </channel>
</rss>

