224 lines
11 KiB
HTML
224 lines
11 KiB
HTML
<!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.9.1"/>
|
|
<title>discoverpixy: GPIO Alternate functions configuration function</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>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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 style="padding-left: 0.5em;">
|
|
<div id="projectname">discoverpixy
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.9.1 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- 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 class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">GPIO Alternate functions configuration function<div class="ingroups"><a class="el" href="group___s_t_m32_f4xx___std_periph___driver.html">STM32F4xx_StdPeriph_Driver</a> » <a class="el" href="group___g_p_i_o.html">GPIO</a> » <a class="el" href="group___g_p_i_o___private___functions.html">GPIO_Private_Functions</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>GPIO Alternate functions configuration function.
|
|
<a href="#details">More...</a></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for GPIO Alternate functions configuration function:</div>
|
|
<div class="dyncontent">
|
|
<center><table><tr><td><img src="group___g_p_i_o___group3.png" border="0" alt="" usemap="#group______g__p__i__o______group3"/>
|
|
<map name="group______g__p__i__o______group3" id="group______g__p__i__o______group3">
|
|
<area shape="rect" id="node1" href="group___g_p_i_o___private___functions.html" title="GPIO_Private_Functions" alt="" coords="5,13,169,39"/></map>
|
|
</td></tr></table></center>
|
|
</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:ga0a77617a322562ae84f8d72486032c5d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o___group3.html#ga0a77617a322562ae84f8d72486032c5d">GPIO_PinAFConfig</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF)</td></tr>
|
|
<tr class="memdesc:ga0a77617a322562ae84f8d72486032c5d"><td class="mdescLeft"> </td><td class="mdescRight">Changes the mapping of the specified pin. <a href="#ga0a77617a322562ae84f8d72486032c5d">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0a77617a322562ae84f8d72486032c5d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>GPIO Alternate functions configuration function. </p>
|
|
<pre class="fragment"> ===============================================================================
|
|
##### GPIO Alternate functions configuration function #####
|
|
=============================================================================== </pre> <h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga0a77617a322562ae84f8d72486032c5d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GPIO_PinAFConfig </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> * </td>
|
|
<td class="paramname"><em>GPIOx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>GPIO_PinSource</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>GPIO_AF</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Changes the mapping of the specified pin. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">GPIOx</td><td>where x can be (A..K) to select the GPIO peripheral for STM32F405xx/407xx and STM32F415xx/417xx devices x can be (A..I) to select the GPIO peripheral for STM32F42xxx/43xxx devices. x can be (A, B, C, D and H) to select the GPIO peripheral for STM32F401xx devices. </td></tr>
|
|
<tr><td class="paramname">GPIO_PinSource</td><td>specifies the pin for the Alternate function. This parameter can be GPIO_PinSourcex where x can be (0..15). </td></tr>
|
|
<tr><td class="paramname">GPIO_AFSelection</td><td>selects the pin to used as Alternate function. This parameter can be one of the following values: <ul>
|
|
<li>GPIO_AF_RTC_50Hz: Connect RTC_50Hz pin to AF0 (default after reset) </li>
|
|
<li>GPIO_AF_MCO: Connect MCO pin (MCO1 and MCO2) to AF0 (default after reset) </li>
|
|
<li>GPIO_AF_TAMPER: Connect TAMPER pins (TAMPER_1 and TAMPER_2) to AF0 (default after reset) </li>
|
|
<li>GPIO_AF_SWJ: Connect SWJ pins (SWD and JTAG)to AF0 (default after reset) </li>
|
|
<li>GPIO_AF_TRACE: Connect TRACE pins to AF0 (default after reset) </li>
|
|
<li>GPIO_AF_TIM1: Connect TIM1 pins to AF1 </li>
|
|
<li>GPIO_AF_TIM2: Connect TIM2 pins to AF1 </li>
|
|
<li>GPIO_AF_TIM3: Connect TIM3 pins to AF2 </li>
|
|
<li>GPIO_AF_TIM4: Connect TIM4 pins to AF2 </li>
|
|
<li>GPIO_AF_TIM5: Connect TIM5 pins to AF2 </li>
|
|
<li>GPIO_AF_TIM8: Connect TIM8 pins to AF3 </li>
|
|
<li>GPIO_AF_TIM9: Connect TIM9 pins to AF3 </li>
|
|
<li>GPIO_AF_TIM10: Connect TIM10 pins to AF3 </li>
|
|
<li>GPIO_AF_TIM11: Connect TIM11 pins to AF3 </li>
|
|
<li>GPIO_AF_I2C1: Connect I2C1 pins to AF4 </li>
|
|
<li>GPIO_AF_I2C2: Connect I2C2 pins to AF4 </li>
|
|
<li>GPIO_AF_I2C3: Connect I2C3 pins to AF4 </li>
|
|
<li>GPIO_AF_SPI1: Connect SPI1 pins to AF5 </li>
|
|
<li>GPIO_AF_SPI2: Connect SPI2/I2S2 pins to AF5 </li>
|
|
<li>GPIO_AF_SPI4: Connect SPI4 pins to AF5 </li>
|
|
<li>GPIO_AF_SPI5: Connect SPI5 pins to AF5 </li>
|
|
<li>GPIO_AF_SPI6: Connect SPI6 pins to AF5 </li>
|
|
<li>GPIO_AF_SAI1: Connect SAI1 pins to AF6 for STM32F42xxx/43xxx devices. </li>
|
|
<li>GPIO_AF_SPI3: Connect SPI3/I2S3 pins to AF6 </li>
|
|
<li>GPIO_AF_I2S3ext: Connect I2S3ext pins to AF7 </li>
|
|
<li>GPIO_AF_USART1: Connect USART1 pins to AF7 </li>
|
|
<li>GPIO_AF_USART2: Connect USART2 pins to AF7 </li>
|
|
<li>GPIO_AF_USART3: Connect USART3 pins to AF7 </li>
|
|
<li>GPIO_AF_UART4: Connect UART4 pins to AF8 </li>
|
|
<li>GPIO_AF_UART5: Connect UART5 pins to AF8 </li>
|
|
<li>GPIO_AF_USART6: Connect USART6 pins to AF8 </li>
|
|
<li>GPIO_AF_UART7: Connect UART7 pins to AF8 </li>
|
|
<li>GPIO_AF_UART8: Connect UART8 pins to AF8 </li>
|
|
<li>GPIO_AF_CAN1: Connect CAN1 pins to AF9 </li>
|
|
<li>GPIO_AF_CAN2: Connect CAN2 pins to AF9 </li>
|
|
<li>GPIO_AF_TIM12: Connect TIM12 pins to AF9 </li>
|
|
<li>GPIO_AF_TIM13: Connect TIM13 pins to AF9 </li>
|
|
<li>GPIO_AF_TIM14: Connect TIM14 pins to AF9 </li>
|
|
<li>GPIO_AF_OTG_FS: Connect OTG_FS pins to AF10 </li>
|
|
<li>GPIO_AF_OTG_HS: Connect OTG_HS pins to AF10 </li>
|
|
<li>GPIO_AF_ETH: Connect ETHERNET pins to AF11 </li>
|
|
<li>GPIO_AF_FSMC: Connect FSMC pins to AF12 </li>
|
|
<li>GPIO_AF_FMC: Connect FMC pins to AF12 for STM32F42xxx/43xxx devices. </li>
|
|
<li>GPIO_AF_OTG_HS_FS: Connect OTG HS (configured in FS) pins to AF12 </li>
|
|
<li>GPIO_AF_SDIO: Connect SDIO pins to AF12 </li>
|
|
<li>GPIO_AF_DCMI: Connect DCMI pins to AF13 </li>
|
|
<li>GPIO_AF_LTDC: Connect LTDC pins to AF14 for STM32F429xx/439xx devices. </li>
|
|
<li>GPIO_AF_EVENTOUT: Connect EVENTOUT pins to AF15 </li>
|
|
</ul>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">None</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="group___g_p_i_o___group3_ga0a77617a322562ae84f8d72486032c5d_icgraph.png" border="0" usemap="#group___g_p_i_o___group3_ga0a77617a322562ae84f8d72486032c5d_icgraph" alt=""/></div>
|
|
<map name="group___g_p_i_o___group3_ga0a77617a322562ae84f8d72486032c5d_icgraph" id="group___g_p_i_o___group3_ga0a77617a322562ae84f8d72486032c5d_icgraph">
|
|
<area shape="rect" id="node2" href="group___u_s_b___b_s_p___exported___functions_prototype.html#gacffb89e4346b11dee704fe5a40326a1f" title="USB_OTG_BSP_Init Initilizes BSP configurations. " alt="" coords="187,5,328,32"/><area shape="rect" id="node3" href="group___u_s_b_h___c_o_r_e___private___functions.html#gae365cd3b28aa14f76325c31138190f52" title="USBH_Init Host hardware and stack initializations. " alt="" coords="376,5,459,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Sun May 10 2015 15:15:20 for discoverpixy by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|