You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							149 lines
						
					
					
						
							6.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							149 lines
						
					
					
						
							6.3 KiB
						
					
					
				
								<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
							 | 
						|
								<html xmlns="http://www.w3.org/1999/xhtml">
							 | 
						|
								<head>
							 | 
						|
								<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
							 | 
						|
								<meta http-equiv="X-UA-Compatible" content="IE=9"/>
							 | 
						|
								<meta name="generator" content="Doxygen 1.8.13"/>
							 | 
						|
								<meta name="viewport" content="width=device-width, initial-scale=1"/>
							 | 
						|
								<title>EmbeddedEtcher: os/printf.c File Reference</title>
							 | 
						|
								<link href="tabs.css" rel="stylesheet" type="text/css"/>
							 | 
						|
								<script type="text/javascript" src="jquery.js"></script>
							 | 
						|
								<script type="text/javascript" src="dynsections.js"></script>
							 | 
						|
								<link href="search/search.css" rel="stylesheet" type="text/css"/>
							 | 
						|
								<script type="text/javascript" src="search/searchdata.js"></script>
							 | 
						|
								<script type="text/javascript" src="search/search.js"></script>
							 | 
						|
								<link href="doxygen.css" rel="stylesheet" type="text/css" />
							 | 
						|
								</head>
							 | 
						|
								<body>
							 | 
						|
								<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
							 | 
						|
								<div id="titlearea">
							 | 
						|
								<table cellspacing="0" cellpadding="0">
							 | 
						|
								 <tbody>
							 | 
						|
								 <tr style="height: 56px;">
							 | 
						|
								  <td id="projectalign" style="padding-left: 0.5em;">
							 | 
						|
								   <div id="projectname">EmbeddedEtcher
							 | 
						|
								   </div>
							 | 
						|
								  </td>
							 | 
						|
								 </tr>
							 | 
						|
								 </tbody>
							 | 
						|
								</table>
							 | 
						|
								</div>
							 | 
						|
								<!-- end header part -->
							 | 
						|
								<!-- Generated by Doxygen 1.8.13 -->
							 | 
						|
								<script type="text/javascript">
							 | 
						|
								var searchBox = new SearchBox("searchBox", "search",false,'Search');
							 | 
						|
								</script>
							 | 
						|
								<script type="text/javascript" src="menudata.js"></script>
							 | 
						|
								<script type="text/javascript" src="menu.js"></script>
							 | 
						|
								<script type="text/javascript">
							 | 
						|
								$(function() {
							 | 
						|
								  initMenu('',true,false,'search.php','Search');
							 | 
						|
								  $(document).ready(function() { init_search(); });
							 | 
						|
								});
							 | 
						|
								</script>
							 | 
						|
								<div id="main-nav"></div>
							 | 
						|
								<!-- window showing the filter options -->
							 | 
						|
								<div id="MSearchSelectWindow"
							 | 
						|
								     onmouseover="return searchBox.OnSearchSelectShow()"
							 | 
						|
								     onmouseout="return searchBox.OnSearchSelectHide()"
							 | 
						|
								     onkeydown="return searchBox.OnSearchSelectKey(event)">
							 | 
						|
								</div>
							 | 
						|
								
							 | 
						|
								<!-- iframe showing the search results (closed by default) -->
							 | 
						|
								<div id="MSearchResultsWindow">
							 | 
						|
								<iframe src="javascript:void(0)" frameborder="0" 
							 | 
						|
								        name="MSearchResults" id="MSearchResults">
							 | 
						|
								</iframe>
							 | 
						|
								</div>
							 | 
						|
								
							 | 
						|
								<div id="nav-path" class="navpath">
							 | 
						|
								  <ul>
							 | 
						|
								<li class="navelem"><a class="el" href="dir_8b7cb6c889a10e2a101a7e90c854ca4d.html">os</a></li>  </ul>
							 | 
						|
								</div>
							 | 
						|
								</div><!-- top -->
							 | 
						|
								<div class="header">
							 | 
						|
								  <div class="summary">
							 | 
						|
								<a href="#func-members">Functions</a>  </div>
							 | 
						|
								  <div class="headertitle">
							 | 
						|
								<div class="title">printf.c File Reference</div>  </div>
							 | 
						|
								</div><!--header-->
							 | 
						|
								<div class="contents">
							 | 
						|
								<div class="textblock"><code>#include <stdio.h></code><br />
							 | 
						|
								<code>#include <stdarg.h></code><br />
							 | 
						|
								<code>#include <string.h></code><br />
							 | 
						|
								<code>#include "stm32f10x.h"</code><br />
							 | 
						|
								<code>#include "<a class="el" href="helpers_8h_source.html">helpers.h</a>"</code><br />
							 | 
						|
								<code>#include "<a class="el" href="printf_8h_source.html">printf.h</a>"</code><br />
							 | 
						|
								<code>#include "<a class="el" href="usart_8h_source.html">../platform/usart.h</a>"</code><br />
							 | 
						|
								<code>#include "<a class="el" href="ossettings_8h_source.html">ossettings.h</a>"</code><br />
							 | 
						|
								<code>#include "<a class="el" href="error_8h_source.html">error.h</a>"</code><br />
							 | 
						|
								</div><div class="textblock"><div class="dynheader">
							 | 
						|
								Include dependency graph for printf.c:</div>
							 | 
						|
								<div class="dyncontent">
							 | 
						|
								<div class="center"><img src="printf_8c__incl.png" border="0" usemap="#os_2printf_8c" alt=""/></div>
							 | 
						|
								<map name="os_2printf_8c" id="os_2printf_8c">
							 | 
						|
								<area shape="rect" id="node6" href="helpers_8h.html" title="helpers.h" alt="" coords="257,80,332,107"/>
							 | 
						|
								<area shape="rect" id="node8" href="printf_8h.html" title="printf.h" alt="" coords="69,80,131,107"/>
							 | 
						|
								<area shape="rect" id="node9" href="usart_8h.html" title="../platform/usart.h" alt="" coords="356,80,481,107"/>
							 | 
						|
								<area shape="rect" id="node10" href="ossettings_8h.html" title="ossettings.h" alt="" coords="600,229,693,256"/>
							 | 
						|
								<area shape="rect" id="node11" href="error_8h.html" title="error.h" alt="" coords="647,80,705,107"/>
							 | 
						|
								<area shape="rect" id="node12" href="ostypes_8h.html" title="ostypes.h" alt="" coords="698,155,777,181"/>
							 | 
						|
								</map>
							 | 
						|
								</div>
							 | 
						|
								</div><table class="memberdecls">
							 | 
						|
								<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
							 | 
						|
								Functions</h2></td></tr>
							 | 
						|
								<tr class="memitem:ae2b707b3f94f0857c447e83c833b068a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="printf_8c.html#ae2b707b3f94f0857c447e83c833b068a">osPrintf</a> (const char *iformat,...)</td></tr>
							 | 
						|
								<tr class="separator:ae2b707b3f94f0857c447e83c833b068a"><td class="memSeparator" colspan="2"> </td></tr>
							 | 
						|
								</table>
							 | 
						|
								<h2 class="groupheader">Function Documentation</h2>
							 | 
						|
								<a id="ae2b707b3f94f0857c447e83c833b068a"></a>
							 | 
						|
								<h2 class="memtitle"><span class="permalink"><a href="#ae2b707b3f94f0857c447e83c833b068a">◆ </a></span>osPrintf()</h2>
							 | 
						|
								
							 | 
						|
								<div class="memitem">
							 | 
						|
								<div class="memproto">
							 | 
						|
								      <table class="memname">
							 | 
						|
								        <tr>
							 | 
						|
								          <td class="memname">int osPrintf </td>
							 | 
						|
								          <td>(</td>
							 | 
						|
								          <td class="paramtype">const char * </td>
							 | 
						|
								          <td class="paramname"><em>iformat</em>, </td>
							 | 
						|
								        </tr>
							 | 
						|
								        <tr>
							 | 
						|
								          <td class="paramkey"></td>
							 | 
						|
								          <td></td>
							 | 
						|
								          <td class="paramtype"> </td>
							 | 
						|
								          <td class="paramname"><em>...</em> </td>
							 | 
						|
								        </tr>
							 | 
						|
								        <tr>
							 | 
						|
								          <td></td>
							 | 
						|
								          <td>)</td>
							 | 
						|
								          <td></td><td></td>
							 | 
						|
								        </tr>
							 | 
						|
								      </table>
							 | 
						|
								</div><div class="memdoc">
							 | 
						|
								<p>printf to be used by the OS user. Can be ported to another platform easily by just using another function to transmit one string with the USART.</p>
							 | 
						|
								<dl class="params"><dt>Parameters</dt><dd>
							 | 
						|
								  <table class="params">
							 | 
						|
								    <tr><td class="paramname">iformat</td><td>Currently supported are d integers c single characters s C strings f Floats with 4 decimals %.xf Floats with x decimals </td></tr>
							 | 
						|
								  </table>
							 | 
						|
								  </dd>
							 | 
						|
								</dl>
							 | 
						|
								<dl class="retval"><dt>Return values</dt><dd>
							 | 
						|
								  <table class="retval">
							 | 
						|
								    <tr><td class="paramname">Returns</td><td>the number of characters printed (SUCCESS) or -1 (FAILURE). </td></tr>
							 | 
						|
								  </table>
							 | 
						|
								  </dd>
							 | 
						|
								</dl>
							 | 
						|
								
							 | 
						|
								</div>
							 | 
						|
								</div>
							 | 
						|
								</div><!-- contents -->
							 | 
						|
								<!-- start footer part -->
							 | 
						|
								<hr class="footer"/><address class="footer"><small>
							 | 
						|
								Generated by  <a href="http://www.doxygen.org/index.html">
							 | 
						|
								<img class="footer" src="doxygen.png" alt="doxygen"/>
							 | 
						|
								</a> 1.8.13
							 | 
						|
								</small></address>
							 | 
						|
								</body>
							 | 
						|
								</html>
							 | 
						|
								
							 |