1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<meta http-equiv="X-UA-Compatible" content="IE=9"/> 6<meta name="generator" content="Doxygen 1.8.13"/> 7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>ISSDK: boardkit/frdm-k32w042/clock_config.c File Reference</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 10<script type="text/javascript" src="jquery.js"></script> 11<script type="text/javascript" src="dynsections.js"></script> 12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" /> 13</head> 14<body> 15<div id="top"><!-- do not remove this div, it is closed by doxygen! --> 16<div id="titlearea"> 17<table cellspacing="0" cellpadding="0"> 18 <tbody> 19 <tr style="height: 56px;"> 20 <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td> 21 <td id="projectalign" style="padding-left: 0.5em;"> 22 <div id="projectname">ISSDK 23  <span id="projectnumber">1.8</span> 24 </div> 25 <div id="projectbrief">IoT Sensing Software Development Kit</div> 26 </td> 27 </tr> 28 </tbody> 29</table> 30</div> 31<!-- end header part --> 32<!-- Generated by Doxygen 1.8.13 --> 33<script type="text/javascript" src="menudata.js"></script> 34<script type="text/javascript" src="menu.js"></script> 35<script type="text/javascript"> 36$(function() { 37 initMenu('',false,false,'search.php','Search'); 38}); 39</script> 40<div id="main-nav"></div> 41<div id="nav-path" class="navpath"> 42 <ul> 43<li class="navelem"><a class="el" href="dir_6994211064bad48d3d63a6227f5100d6.html">boardkit</a></li><li class="navelem"><a class="el" href="dir_2692879e20973b44d33f0adfa9bd527e.html">frdm-k32w042</a></li> </ul> 44</div> 45</div><!-- top --> 46<div class="header"> 47 <div class="summary"> 48<a href="#define-members">Macros</a> | 49<a href="#func-members">Functions</a> | 50<a href="#var-members">Variables</a> </div> 51 <div class="headertitle"> 52<div class="title">clock_config.c File Reference</div> </div> 53</div><!--header--> 54<div class="contents"> 55<div class="textblock"><code>#include "<a class="el" href="a04301_source.html">clock_config.h</a>"</code><br /> 56</div><div class="textblock"><div class="dynheader"> 57Include dependency graph for clock_config.c:</div> 58<div class="dyncontent"> 59<div class="center"><img src="a04245.png" border="0" usemap="#boardkit_2frdm-k32w042_2clock__config_8c" alt=""/></div> 60<map name="boardkit_2frdm-k32w042_2clock__config_8c" id="boardkit_2frdm-k32w042_2clock__config_8c"> 61<area shape="rect" id="node2" href="a04301.html" title="clock_config.h" alt="" coords="29,95,134,121"/> 62</map> 63</div> 64</div> 65<p><a href="a04244_source.html">Go to the source code of this file.</a></p> 66<table class="memberdecls"> 67<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> 68Macros</h2></td></tr> 69<tr class="memitem:aaca1879e0759e80e5adb3044c10c7dd0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#aaca1879e0759e80e5adb3044c10c7dd0">SCG_LPFLL_DISABLE</a>   0U</td></tr> 70<tr class="separator:aaca1879e0759e80e5adb3044c10c7dd0"><td class="memSeparator" colspan="2"> </td></tr> 71</table><table class="memberdecls"> 72<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 73Functions</h2></td></tr> 74<tr class="memitem:a09a9a2026d4c394534e528d519370d3e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#a09a9a2026d4c394534e528d519370d3e">BOARD_InitBootClocks</a> (void)</td></tr> 75<tr class="memdesc:a09a9a2026d4c394534e528d519370d3e"><td class="mdescLeft"> </td><td class="mdescRight">This function executes default configuration of clocks. <a href="#a09a9a2026d4c394534e528d519370d3e">More...</a><br /></td></tr> 76<tr class="separator:a09a9a2026d4c394534e528d519370d3e"><td class="memSeparator" colspan="2"> </td></tr> 77<tr class="memitem:a5e69c4eff0fd5236bbb0ff4e1d5a7a7e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#a5e69c4eff0fd5236bbb0ff4e1d5a7a7e">BOARD_BootClockRUN</a> (void)</td></tr> 78<tr class="memdesc:a5e69c4eff0fd5236bbb0ff4e1d5a7a7e"><td class="mdescLeft"> </td><td class="mdescRight">This function executes configuration of clocks. <a href="#a5e69c4eff0fd5236bbb0ff4e1d5a7a7e">More...</a><br /></td></tr> 79<tr class="separator:a5e69c4eff0fd5236bbb0ff4e1d5a7a7e"><td class="memSeparator" colspan="2"> </td></tr> 80</table><table class="memberdecls"> 81<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> 82Variables</h2></td></tr> 83<tr class="memitem:aa3cd3e43291e81e795d642b79b6088e6"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#aa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a></td></tr> 84<tr class="separator:aa3cd3e43291e81e795d642b79b6088e6"><td class="memSeparator" colspan="2"> </td></tr> 85<tr class="memitem:a9608b8d38f9bebc0bd4f50f9d8ce30ab"><td class="memItemLeft" align="right" valign="top">const scg_sys_clk_config_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#a9608b8d38f9bebc0bd4f50f9d8ce30ab">g_sysClkConfig_BOARD_BootClockRUN</a></td></tr> 86<tr class="memdesc:a9608b8d38f9bebc0bd4f50f9d8ce30ab"><td class="mdescLeft"> </td><td class="mdescRight">SCG set for BOARD_BootClockRUN configuration. <a href="#a9608b8d38f9bebc0bd4f50f9d8ce30ab">More...</a><br /></td></tr> 87<tr class="separator:a9608b8d38f9bebc0bd4f50f9d8ce30ab"><td class="memSeparator" colspan="2"> </td></tr> 88<tr class="memitem:a43bf8979e09a0a941320583656ed32f7"><td class="memItemLeft" align="right" valign="top">const scg_sosc_config_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#a43bf8979e09a0a941320583656ed32f7">g_scgSysOscConfig_BOARD_BootClockRUN</a></td></tr> 89<tr class="memdesc:a43bf8979e09a0a941320583656ed32f7"><td class="mdescLeft"> </td><td class="mdescRight">System OSC set for BOARD_BootClockRUN configuration. <a href="#a43bf8979e09a0a941320583656ed32f7">More...</a><br /></td></tr> 90<tr class="separator:a43bf8979e09a0a941320583656ed32f7"><td class="memSeparator" colspan="2"> </td></tr> 91<tr class="memitem:af4d90a1ba81948cb43b4ea3bbf1430fa"><td class="memItemLeft" align="right" valign="top">const scg_sirc_config_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#af4d90a1ba81948cb43b4ea3bbf1430fa">g_scgSircConfig_BOARD_BootClockRUN</a></td></tr> 92<tr class="memdesc:af4d90a1ba81948cb43b4ea3bbf1430fa"><td class="mdescLeft"> </td><td class="mdescRight">SIRC set for BOARD_BootClockRUN configuration. <a href="#af4d90a1ba81948cb43b4ea3bbf1430fa">More...</a><br /></td></tr> 93<tr class="separator:af4d90a1ba81948cb43b4ea3bbf1430fa"><td class="memSeparator" colspan="2"> </td></tr> 94<tr class="memitem:a11b406d8b361edd1a4bebc8930743a0a"><td class="memItemLeft" align="right" valign="top">const scg_firc_config_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#a11b406d8b361edd1a4bebc8930743a0a">g_scgFircConfig_BOARD_BootClockRUN</a></td></tr> 95<tr class="separator:a11b406d8b361edd1a4bebc8930743a0a"><td class="memSeparator" colspan="2"> </td></tr> 96<tr class="memitem:aaba96dcc6379af631b9b3eca820277cd"><td class="memItemLeft" align="right" valign="top">const scg_lpfll_config_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04244.html#aaba96dcc6379af631b9b3eca820277cd">g_scgLpFllConfig_BOARD_BootClockRUN</a></td></tr> 97<tr class="separator:aaba96dcc6379af631b9b3eca820277cd"><td class="memSeparator" colspan="2"> </td></tr> 98</table> 99<h2 class="groupheader">Macro Definition Documentation</h2> 100<a id="aaca1879e0759e80e5adb3044c10c7dd0"></a> 101<h2 class="memtitle"><span class="permalink"><a href="#aaca1879e0759e80e5adb3044c10c7dd0">◆ </a></span>SCG_LPFLL_DISABLE</h2> 102 103<div class="memitem"> 104<div class="memproto"> 105 <table class="memname"> 106 <tr> 107 <td class="memname">#define SCG_LPFLL_DISABLE   0U</td> 108 </tr> 109 </table> 110</div><div class="memdoc"> 111<p>LPFLL clock disabled </p> 112 113<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00040">40</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 114 115</div> 116</div> 117<h2 class="groupheader">Function Documentation</h2> 118<a id="a5e69c4eff0fd5236bbb0ff4e1d5a7a7e"></a> 119<h2 class="memtitle"><span class="permalink"><a href="#a5e69c4eff0fd5236bbb0ff4e1d5a7a7e">◆ </a></span>BOARD_BootClockRUN()</h2> 120 121<div class="memitem"> 122<div class="memproto"> 123 <table class="memname"> 124 <tr> 125 <td class="memname">void BOARD_BootClockRUN </td> 126 <td>(</td> 127 <td class="paramtype">void </td> 128 <td class="paramname"></td><td>)</td> 129 <td></td> 130 </tr> 131 </table> 132</div><div class="memdoc"> 133 134<p>This function executes configuration of clocks. </p> 135<p>This function executes configuration of clocks.</p> 136<dl class="params"><dt>Parameters</dt><dd> 137 <table class="params"> 138 <tr><td class="paramname">void</td><td></td></tr> 139 </table> 140 </dd> 141</dl> 142<dl class="section return"><dt>Returns</dt><dd>void </dd></dl> 143 144<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00167">167</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 145 146</div> 147</div> 148<a id="a09a9a2026d4c394534e528d519370d3e"></a> 149<h2 class="memtitle"><span class="permalink"><a href="#a09a9a2026d4c394534e528d519370d3e">◆ </a></span>BOARD_InitBootClocks()</h2> 150 151<div class="memitem"> 152<div class="memproto"> 153 <table class="memname"> 154 <tr> 155 <td class="memname">void BOARD_InitBootClocks </td> 156 <td>(</td> 157 <td class="paramtype">void </td> 158 <td class="paramname"></td><td>)</td> 159 <td></td> 160 </tr> 161 </table> 162</div><div class="memdoc"> 163 164<p>This function executes default configuration of clocks. </p> 165 166<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00099">99</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 167 168<p class="reference">References <a class="el" href="a04223_source.html#l00168">BOARD_BootClockRUN()</a>.</p> 169<div class="dynheader"> 170Here is the call graph for this function:</div> 171<div class="dyncontent"> 172<div class="center"><img src="a04244_a09a9a2026d4c394534e528d519370d3e_cgraph.png" border="0" usemap="#a04244_a09a9a2026d4c394534e528d519370d3e_cgraph" alt=""/></div> 173<map name="a04244_a09a9a2026d4c394534e528d519370d3e_cgraph" id="a04244_a09a9a2026d4c394534e528d519370d3e_cgraph"> 174<area shape="rect" id="node2" href="a04223.html#a5e69c4eff0fd5236bbb0ff4e1d5a7a7e" title="This function executes configuration of clocks. " alt="" coords="212,5,375,32"/> 175</map> 176</div> 177 178</div> 179</div> 180<h2 class="groupheader">Variable Documentation</h2> 181<a id="a11b406d8b361edd1a4bebc8930743a0a"></a> 182<h2 class="memtitle"><span class="permalink"><a href="#a11b406d8b361edd1a4bebc8930743a0a">◆ </a></span>g_scgFircConfig_BOARD_BootClockRUN</h2> 183 184<div class="memitem"> 185<div class="memproto"> 186 <table class="memname"> 187 <tr> 188 <td class="memname">const scg_firc_config_t g_scgFircConfig_BOARD_BootClockRUN</td> 189 </tr> 190 </table> 191</div><div class="memdoc"> 192<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"> .enableMode = kSCG_FircEnable, </div><div class="line"> .div1 = kSCG_AsyncClkDivBy1, </div><div class="line"> .div2 = kSCG_AsyncClkDivBy1, </div><div class="line"> .div3 = kSCG_AsyncClkDivBy1, </div><div class="line"> .range = kSCG_FircRange48M, </div><div class="line"> .trimConfig = NULL, </div><div class="line">}</div></div><!-- fragment --> 193<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00148">148</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 194 195</div> 196</div> 197<a id="aaba96dcc6379af631b9b3eca820277cd"></a> 198<h2 class="memtitle"><span class="permalink"><a href="#aaba96dcc6379af631b9b3eca820277cd">◆ </a></span>g_scgLpFllConfig_BOARD_BootClockRUN</h2> 199 200<div class="memitem"> 201<div class="memproto"> 202 <table class="memname"> 203 <tr> 204 <td class="memname">const scg_lpfll_config_t g_scgLpFllConfig_BOARD_BootClockRUN</td> 205 </tr> 206 </table> 207</div><div class="memdoc"> 208<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"> .enableMode = kSCG_LpFllEnable, </div><div class="line"> .div1 = kSCG_AsyncClkDivBy1, </div><div class="line"> .div2 = kSCG_AsyncClkDisable, </div><div class="line"> .div3 = kSCG_AsyncClkDisable, </div><div class="line"> .range = kSCG_LpFllRange72M, </div><div class="line"> .trimConfig = NULL,</div><div class="line">}</div></div><!-- fragment --> 209<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00156">156</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 210 211</div> 212</div> 213<a id="af4d90a1ba81948cb43b4ea3bbf1430fa"></a> 214<h2 class="memtitle"><span class="permalink"><a href="#af4d90a1ba81948cb43b4ea3bbf1430fa">◆ </a></span>g_scgSircConfig_BOARD_BootClockRUN</h2> 215 216<div class="memitem"> 217<div class="memproto"> 218 <table class="memname"> 219 <tr> 220 <td class="memname">const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN</td> 221 </tr> 222 </table> 223</div><div class="memdoc"> 224<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"> .enableMode = kSCG_SircEnable | kSCG_SircEnableInLowPower, </div><div class="line"> .div1 = kSCG_AsyncClkDisable, </div><div class="line"> .div2 = kSCG_AsyncClkDisable, </div><div class="line"> .div3 = kSCG_AsyncClkDivBy1, </div><div class="line"> .range = kSCG_SircRangeHigh, </div><div class="line">}</div></div><!-- fragment --> 225<p>SIRC set for BOARD_BootClockRUN configuration. </p> 226 227<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00141">141</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 228 229</div> 230</div> 231<a id="a43bf8979e09a0a941320583656ed32f7"></a> 232<h2 class="memtitle"><span class="permalink"><a href="#a43bf8979e09a0a941320583656ed32f7">◆ </a></span>g_scgSysOscConfig_BOARD_BootClockRUN</h2> 233 234<div class="memitem"> 235<div class="memproto"> 236 <table class="memname"> 237 <tr> 238 <td class="memname">const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN</td> 239 </tr> 240 </table> 241</div><div class="memdoc"> 242<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"> .freq = 0U, </div><div class="line"> .div1 = kSCG_AsyncClkDisable, </div><div class="line"> .div2 = kSCG_AsyncClkDisable, </div><div class="line"> .div3 = kSCG_AsyncClkDisable, </div><div class="line">}</div></div><!-- fragment --> 243<p>System OSC set for BOARD_BootClockRUN configuration. </p> 244 245<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00135">135</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 246 247</div> 248</div> 249<a id="a9608b8d38f9bebc0bd4f50f9d8ce30ab"></a> 250<h2 class="memtitle"><span class="permalink"><a href="#a9608b8d38f9bebc0bd4f50f9d8ce30ab">◆ </a></span>g_sysClkConfig_BOARD_BootClockRUN</h2> 251 252<div class="memitem"> 253<div class="memproto"> 254 <table class="memname"> 255 <tr> 256 <td class="memname">const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN</td> 257 </tr> 258 </table> 259</div><div class="memdoc"> 260<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"> .divSlow = kSCG_SysClkDivBy2, </div><div class="line"> .divBus = kSCG_SysClkDivBy1, </div><div class="line"> .divExt = kSCG_SysClkDivBy1, </div><div class="line"> .divCore = kSCG_SysClkDivBy1, </div><div class="line"> .src = kSCG_SysClkSrcFirc, </div><div class="line">}</div></div><!-- fragment --> 261<p>SCG set for BOARD_BootClockRUN configuration. </p> 262 263<p class="definition">Definition at line <a class="el" href="a04244_source.html#l00128">128</a> of file <a class="el" href="a04244_source.html">clock_config.c</a>.</p> 264 265</div> 266</div> 267<a id="aa3cd3e43291e81e795d642b79b6088e6"></a> 268<h2 class="memtitle"><span class="permalink"><a href="#aa3cd3e43291e81e795d642b79b6088e6">◆ </a></span>SystemCoreClock</h2> 269 270<div class="memitem"> 271<div class="memproto"> 272 <table class="memname"> 273 <tr> 274 <td class="memname">uint32_t SystemCoreClock</td> 275 </tr> 276 </table> 277</div><div class="memdoc"> 278 279</div> 280</div> 281</div><!-- contents --> 282 283<hr class="footer"/><address class="footer"><small> 284© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 285</small></address> 286</body> 287</html> 288