<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dsignt.de/support-wiki/index.php?action=history&amp;feed=atom&amp;title=UART_Printf</id>
	<title>UART Printf - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dsignt.de/support-wiki/index.php?action=history&amp;feed=atom&amp;title=UART_Printf"/>
	<link rel="alternate" type="text/html" href="https://dsignt.de/support-wiki/index.php?title=UART_Printf&amp;action=history"/>
	<updated>2026-08-14T20:35:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://dsignt.de/support-wiki/index.php?title=UART_Printf&amp;diff=625&amp;oldid=prev</id>
		<title>Root at 14:07, 15 December 2011</title>
		<link rel="alternate" type="text/html" href="https://dsignt.de/support-wiki/index.php?title=UART_Printf&amp;diff=625&amp;oldid=prev"/>
		<updated>2011-12-15T14:07:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:07, 15 December 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  [[category:DSP]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  [[category:DSP&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]][[category:Software&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>https://dsignt.de/support-wiki/index.php?title=UART_Printf&amp;diff=464&amp;oldid=prev</id>
		<title>WikiImporter: Pushed from DSignT Issue Database.</title>
		<link rel="alternate" type="text/html" href="https://dsignt.de/support-wiki/index.php?title=UART_Printf&amp;diff=464&amp;oldid=prev"/>
		<updated>2011-03-02T12:50:00Z</updated>

		<summary type="html">&lt;p&gt;Pushed from DSignT Issue Database.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Printf via UART ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define UART_PRINTFBUF_SIZE 256&lt;br /&gt;
&lt;br /&gt;
T_Handle h_uart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/*******************************************************************//**&lt;br /&gt;
 @brief     printf output via UART&lt;br /&gt;
 &lt;br /&gt;
 @param     format - format string, see printf&lt;br /&gt;
 @return    -&lt;br /&gt;
 @note      make sure not to exceed UART_PRINTFBUF_SIZE&lt;br /&gt;
***********************************************************************/&lt;br /&gt;
void UARTPrintf(const char *format, ...)&lt;br /&gt;
{&lt;br /&gt;
    /***************************************************************************&lt;br /&gt;
      locals&lt;br /&gt;
    ***************************************************************************/&lt;br /&gt;
    va_list argptr;&lt;br /&gt;
    static char buffer[UART_PRINTFBUF_SIZE];&lt;br /&gt;
    int32_t len;&lt;br /&gt;
    &lt;br /&gt;
    /***************************************************************************&lt;br /&gt;
      initialize variable argument list&lt;br /&gt;
    ***************************************************************************/&lt;br /&gt;
    va_start (argptr, format);&lt;br /&gt;
&lt;br /&gt;
    /***************************************************************************&lt;br /&gt;
      print to buffer&lt;br /&gt;
    ***************************************************************************/&lt;br /&gt;
    len = vsprintf (buffer, format, argptr);&lt;br /&gt;
  &lt;br /&gt;
    /***************************************************************************&lt;br /&gt;
      check buffer overflow&lt;br /&gt;
      exit on overflow&lt;br /&gt;
    ***************************************************************************/&lt;br /&gt;
    if (len &amp;gt;= UART_PRINTFBUF_SIZE)&lt;br /&gt;
    {&lt;br /&gt;
        exit (0xFF);&lt;br /&gt;
    }&lt;br /&gt;
  &lt;br /&gt;
    /***************************************************************************&lt;br /&gt;
      output string via UART&lt;br /&gt;
    ***************************************************************************/&lt;br /&gt;
    DM2_uartWriteStr (h_uart, buffer, DM2_UART_NOTIMEOUT);&lt;br /&gt;
    &lt;br /&gt;
    /***************************************************************************&lt;br /&gt;
      end variable argument list&lt;br /&gt;
    ***************************************************************************/&lt;br /&gt;
    va_end(argptr);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 [[category:DSP]]&lt;/div&gt;</summary>
		<author><name>WikiImporter</name></author>
	</entry>
</feed>