<?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 LPC1115 redirect printf/scanf to UART in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536866#M5233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mykbdj on Fri Feb 21 03:08:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've defined the __sys_write() and __sys_readc() functions as following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
int __sys_write (int iFileHandle, char *pcBuffer, int iLength)
{
unsigned int i;
for (i = 0;i (less than) iLength; i++)
{
putchar(pcBuffer&lt;I&gt;); // print each character
}
return iLength;
}

int __sys_readc (void)
{
char c = getchar();
return (int)c;
}&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edited this part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:24:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:24:35Z</dc:date>
    <item>
      <title>LPC1115 redirect printf/scanf to UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536866#M5233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mykbdj on Fri Feb 21 03:08:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've defined the __sys_write() and __sys_readc() functions as following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
int __sys_write (int iFileHandle, char *pcBuffer, int iLength)
{
unsigned int i;
for (i = 0;i (less than) iLength; i++)
{
putchar(pcBuffer&lt;I&gt;); // print each character
}
return iLength;
}

int __sys_readc (void)
{
char c = getchar();
return (int)c;
}&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edited this part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536866#M5233</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1115 redirect printf/scanf to UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536867#M5234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mykbdj on Fri Feb 21 03:12:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason the post was being clipped right after the angled brackets. I had to replace it with (less than) to show the intent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536867#M5234</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1115 redirect printf/scanf to UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536868#M5235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Fri Feb 21 03:23:24 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mykbdj&lt;/STRONG&gt;&lt;BR /&gt;Any ideas what am I missing?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;stdio.h&amp;nbsp; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536868#M5235</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1115 redirect printf/scanf to UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536869#M5236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mykbdj on Fri Feb 21 03:42:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, I'm an idiot.&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added stdio.h in a different file than I was compiling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fixed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&amp;nbsp; :bigsmile: &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1115-redirect-printf-scanf-to-UART/m-p/536869#M5236</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:24:37Z</dc:date>
    </item>
  </channel>
</rss>

