<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Printf</id>
	<title>Printf - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Printf"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Printf&amp;action=history"/>
	<updated>2026-06-05T13:41:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=Printf&amp;diff=31373&amp;oldid=prev</id>
		<title>Chao at 04:04, 24 May 2021</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Printf&amp;diff=31373&amp;oldid=prev"/>
		<updated>2021-05-24T04:04:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* printf(&amp;quot;%#08x\n&amp;quot;, i);   // gives 0x000007&lt;br /&gt;
* printf(&amp;quot;addr:0x%x, data:0x%x\r\n&amp;quot;, addr, flash_data); // ... 0xFF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* printf(&amp;quot;%02X  \n&amp;quot;, (UINT16)SPIdat); // hex data  // 02 表示不足两位，前面补0输出；如果超过两位，则实际输出&lt;br /&gt;
 30 30 20 20 0D 0A &lt;br /&gt;
 30 30 20 20 &lt;br /&gt;
== Purchar STM32 == &lt;br /&gt;
&lt;br /&gt;
 PUTCHAR_PROTOTYPE&lt;br /&gt;
 {&lt;br /&gt;
  /* Place your implementation of fputc here */&lt;br /&gt;
  /* e.g. write a character to the EVAL_COM1 and Loop until the end of transmission */&lt;br /&gt;
  HAL_UART_Transmit(&amp;amp;huart1, (uint8_t *)&amp;amp;ch, 1, 0xFFFF);&lt;br /&gt;
 &lt;br /&gt;
  return ch;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* https://www.runoob.com/cprogramming/c-function-printf.html&lt;br /&gt;
&lt;br /&gt;
[[category: C Function]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>