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/lpcxpresso54114/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_311984c7c6eeb5b62dd470fcd53a1b8f.html">lpcxpresso54114</a></li> </ul> 44</div> 45</div><!-- top --> 46<div class="header"> 47 <div class="summary"> 48<a href="#func-members">Functions</a> | 49<a href="#var-members">Variables</a> </div> 50 <div class="headertitle"> 51<div class="title">clock_config.c File Reference</div> </div> 52</div><!--header--> 53<div class="contents"> 54<div class="textblock"><code>#include "fsl_power.h"</code><br /> 55<code>#include "fsl_clock.h"</code><br /> 56<code>#include "<a class="el" href="a04292_source.html">clock_config.h</a>"</code><br /> 57</div><div class="textblock"><div class="dynheader"> 58Include dependency graph for clock_config.c:</div> 59<div class="dyncontent"> 60<div class="center"><img src="a04236.png" border="0" usemap="#boardkit_2lpcxpresso54114_2clock__config_8c" alt=""/></div> 61<map name="boardkit_2lpcxpresso54114_2clock__config_8c" id="boardkit_2lpcxpresso54114_2clock__config_8c"> 62<area shape="rect" id="node4" href="a04292.html" title="clock_config.h" alt="" coords="224,95,329,121"/> 63</map> 64</div> 65</div> 66<p><a href="a04235_source.html">Go to the source code of this file.</a></p> 67<table class="memberdecls"> 68<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 69Functions</h2></td></tr> 70<tr class="memitem:a188981cc76bd64105a71096d9f4ae141"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04235.html#a188981cc76bd64105a71096d9f4ae141">BOARD_BootClockFRO12M</a> (void)</td></tr> 71<tr class="memdesc:a188981cc76bd64105a71096d9f4ae141"><td class="mdescLeft"> </td><td class="mdescRight">This function executes configuration of clocks. <a href="#a188981cc76bd64105a71096d9f4ae141">More...</a><br /></td></tr> 72<tr class="separator:a188981cc76bd64105a71096d9f4ae141"><td class="memSeparator" colspan="2"> </td></tr> 73<tr class="memitem:a845aa63903a75c799d4771a026c0cfa9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04235.html#a845aa63903a75c799d4771a026c0cfa9">BOARD_BootClockFROHF48M</a> (void)</td></tr> 74<tr class="memdesc:a845aa63903a75c799d4771a026c0cfa9"><td class="mdescLeft"> </td><td class="mdescRight">This function executes configuration of clocks. <a href="#a845aa63903a75c799d4771a026c0cfa9">More...</a><br /></td></tr> 75<tr class="separator:a845aa63903a75c799d4771a026c0cfa9"><td class="memSeparator" colspan="2"> </td></tr> 76<tr class="memitem:a245da4f80747dadd943a8891f2d6592d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04235.html#a245da4f80747dadd943a8891f2d6592d">BOARD_BootClockFROHF96M</a> (void)</td></tr> 77<tr class="memdesc:a245da4f80747dadd943a8891f2d6592d"><td class="mdescLeft"> </td><td class="mdescRight">This function executes configuration of clocks. <a href="#a245da4f80747dadd943a8891f2d6592d">More...</a><br /></td></tr> 78<tr class="separator:a245da4f80747dadd943a8891f2d6592d"><td class="memSeparator" colspan="2"> </td></tr> 79</table><table class="memberdecls"> 80<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> 81Variables</h2></td></tr> 82<tr class="memitem:aa3cd3e43291e81e795d642b79b6088e6"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a04235.html#aa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a></td></tr> 83<tr class="separator:aa3cd3e43291e81e795d642b79b6088e6"><td class="memSeparator" colspan="2"> </td></tr> 84</table> 85<h2 class="groupheader">Function Documentation</h2> 86<a id="a188981cc76bd64105a71096d9f4ae141"></a> 87<h2 class="memtitle"><span class="permalink"><a href="#a188981cc76bd64105a71096d9f4ae141">◆ </a></span>BOARD_BootClockFRO12M()</h2> 88 89<div class="memitem"> 90<div class="memproto"> 91 <table class="memname"> 92 <tr> 93 <td class="memname">void BOARD_BootClockFRO12M </td> 94 <td>(</td> 95 <td class="paramtype">void </td> 96 <td class="paramname"></td><td>)</td> 97 <td></td> 98 </tr> 99 </table> 100</div><div class="memdoc"> 101 102<p>This function executes configuration of clocks. </p> 103<p>< Set up the clock sources</p> 104<p>< Set up FRO</p> 105<p>< Ensure FRO is on</p> 106<p>< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed</p> 107<p>< Set up FRO to the 12 MHz, just for sure</p> 108<p>< Set voltage for the one of the fastest clock outputs: System clock output</p> 109<p>< Set FLASH wait states for core</p> 110<p>< Set up dividers</p> 111<p>< Set AHBCLKDIV divider to value 1</p> 112<p>< Set up clock selectors - Attach clocks to the peripheries</p> 113<p>< Switch MAIN_CLK to FRO12M</p> 114<p>< Set SystemCoreClock variable. </p> 115 116<p class="definition">Definition at line <a class="el" href="a04235_source.html#l00063">63</a> of file <a class="el" href="a04235_source.html">clock_config.c</a>.</p> 117 118</div> 119</div> 120<a id="a845aa63903a75c799d4771a026c0cfa9"></a> 121<h2 class="memtitle"><span class="permalink"><a href="#a845aa63903a75c799d4771a026c0cfa9">◆ </a></span>BOARD_BootClockFROHF48M()</h2> 122 123<div class="memitem"> 124<div class="memproto"> 125 <table class="memname"> 126 <tr> 127 <td class="memname">void BOARD_BootClockFROHF48M </td> 128 <td>(</td> 129 <td class="paramtype">void </td> 130 <td class="paramname"></td><td>)</td> 131 <td></td> 132 </tr> 133 </table> 134</div><div class="memdoc"> 135 136<p>This function executes configuration of clocks. </p> 137<p>< Set up the clock sources</p> 138<p>< Set up FRO</p> 139<p>< Ensure FRO is on</p> 140<p>< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed</p> 141<p>< Set voltage for the one of the fastest clock outputs: System clock output</p> 142<p>< Set FLASH wait states for core</p> 143<p>< Set up high frequency FRO output to selected frequency</p> 144<p>< Set up dividers</p> 145<p>< Set AHBCLKDIV divider to value 1</p> 146<p>< Set up clock selectors - Attach clocks to the peripheries</p> 147<p>< Switch MAIN_CLK to FRO_HF</p> 148<p>< Set SystemCoreClock variable. </p> 149 150<p class="definition">Definition at line <a class="el" href="a04235_source.html#l00101">101</a> of file <a class="el" href="a04235_source.html">clock_config.c</a>.</p> 151 152<p class="reference">References <a class="el" href="a04292_source.html#l00053">BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK</a>, and <a class="el" href="a04223.html#aa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a>.</p> 153 154</div> 155</div> 156<a id="a245da4f80747dadd943a8891f2d6592d"></a> 157<h2 class="memtitle"><span class="permalink"><a href="#a245da4f80747dadd943a8891f2d6592d">◆ </a></span>BOARD_BootClockFROHF96M()</h2> 158 159<div class="memitem"> 160<div class="memproto"> 161 <table class="memname"> 162 <tr> 163 <td class="memname">void BOARD_BootClockFROHF96M </td> 164 <td>(</td> 165 <td class="paramtype">void </td> 166 <td class="paramname"></td><td>)</td> 167 <td></td> 168 </tr> 169 </table> 170</div><div class="memdoc"> 171 172<p>This function executes configuration of clocks. </p> 173<p>< Set up the clock sources</p> 174<p>< Set up FRO</p> 175<p>< Ensure FRO is on</p> 176<p>< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed</p> 177<p>< Set voltage for the one of the fastest clock outputs: System clock output</p> 178<p>< Set FLASH wait states for core</p> 179<p>< Set up high frequency FRO output to selected frequency</p> 180<p>< Set up dividers</p> 181<p>< Set AHBCLKDIV divider to value 1</p> 182<p>< Set up clock selectors - Attach clocks to the peripheries</p> 183<p>< Switch MAIN_CLK to FRO_HF</p> 184<p>< Set SystemCoreClock variable. </p> 185 186<p class="definition">Definition at line <a class="el" href="a04235_source.html#l00142">142</a> of file <a class="el" href="a04235_source.html">clock_config.c</a>.</p> 187 188<p class="reference">Referenced by <a class="el" href="a00650_source.html#l00086">BOARD_BootClockRUN()</a>, and <a class="el" href="a04238_source.html#l00052">BOARD_InitBootClocks()</a>.</p> 189<div class="dynheader"> 190Here is the caller graph for this function:</div> 191<div class="dyncontent"> 192<div class="center"><img src="a04235_a245da4f80747dadd943a8891f2d6592d_icgraph.png" border="0" usemap="#a04235_a245da4f80747dadd943a8891f2d6592d_icgraph" alt=""/></div> 193<map name="a04235_a245da4f80747dadd943a8891f2d6592d_icgraph" id="a04235_a245da4f80747dadd943a8891f2d6592d_icgraph"> 194<area shape="rect" id="node2" href="a00650.html#a5e69c4eff0fd5236bbb0ff4e1d5a7a7e" title="Kinetis style Wrapper API for handling all Clock related configurations. " alt="" coords="257,5,420,32"/> 195<area shape="rect" id="node3" href="a04334.html#a09a9a2026d4c394534e528d519370d3e" title="This function executes default configuration of clocks. " alt="" coords="259,56,418,83"/> 196</map> 197</div> 198 199</div> 200</div> 201<h2 class="groupheader">Variable Documentation</h2> 202<a id="aa3cd3e43291e81e795d642b79b6088e6"></a> 203<h2 class="memtitle"><span class="permalink"><a href="#aa3cd3e43291e81e795d642b79b6088e6">◆ </a></span>SystemCoreClock</h2> 204 205<div class="memitem"> 206<div class="memproto"> 207 <table class="memname"> 208 <tr> 209 <td class="memname">uint32_t SystemCoreClock</td> 210 </tr> 211 </table> 212</div><div class="memdoc"> 213 214</div> 215</div> 216</div><!-- contents --> 217 218<hr class="footer"/><address class="footer"><small> 219© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 220</small></address> 221</body> 222</html> 223