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.h 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="#define-members">Macros</a> | 49<a href="#func-members">Functions</a> </div> 50 <div class="headertitle"> 51<div class="title">clock_config.h File Reference</div> </div> 52</div><!--header--> 53<div class="contents"> 54<div class="textblock"><code>#include "fsl_common.h"</code><br /> 55</div><div class="textblock"><div class="dynheader"> 56Include dependency graph for clock_config.h:</div> 57<div class="dyncontent"> 58<div class="center"><img src="a04293.png" border="0" usemap="#boardkit_2lpcxpresso54114_2clock__config_8h" alt=""/></div> 59</div> 60</div><div class="textblock"><div class="dynheader"> 61This graph shows which files directly or indirectly include this file:</div> 62<div class="dyncontent"> 63<div class="center"><img src="a04294.png" border="0" usemap="#boardkit_2lpcxpresso54114_2clock__config_8hdep" alt=""/></div> 64<map name="boardkit_2lpcxpresso54114_2clock__config_8hdep" id="boardkit_2lpcxpresso54114_2clock__config_8hdep"> 65<area shape="rect" id="node2" href="a04121.html" title="boardkit/lpcxpresso54114\l/board.c" alt="" coords="5,184,176,225"/> 66<area shape="rect" id="node3" href="a04178.html" title="boardkit/lpcxpresso54114\l/board.h" alt="" coords="67,95,237,136"/> 67<area shape="rect" id="node4" href="a04235.html" title="boardkit/lpcxpresso54114\l/clock_config.c" alt="" coords="261,95,432,136"/> 68</map> 69</div> 70</div> 71<p><a href="a04292_source.html">Go to the source code of this file.</a></p> 72<table class="memberdecls"> 73<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> 74Macros</h2></td></tr> 75<tr class="memitem:ad09513e3c601985fc61136ef6c0678f9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#ad09513e3c601985fc61136ef6c0678f9">BOARD_XTAL0_CLK_HZ</a>   12000000U</td></tr> 76<tr class="separator:ad09513e3c601985fc61136ef6c0678f9"><td class="memSeparator" colspan="2"> </td></tr> 77<tr class="memitem:ac2b7bb542e5cb061aec9ac2c07ec20a0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#ac2b7bb542e5cb061aec9ac2c07ec20a0">BOARD_XTAL32K_CLK_HZ</a>   32768U</td></tr> 78<tr class="separator:ac2b7bb542e5cb061aec9ac2c07ec20a0"><td class="memSeparator" colspan="2"> </td></tr> 79<tr class="memitem:a8d81431cbbc4b01da56afbff0f766379"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a>   <a class="el" href="a04292.html#a845aa63903a75c799d4771a026c0cfa9">BOARD_BootClockFROHF48M</a></td></tr> 80<tr class="separator:a8d81431cbbc4b01da56afbff0f766379"><td class="memSeparator" colspan="2"> </td></tr> 81<tr class="memitem:a81e21eb19f45e15f7391913771a77b3e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a81e21eb19f45e15f7391913771a77b3e">BOARD_BOOTCLOCKFRO12M_CORE_CLOCK</a>   12000000U</td></tr> 82<tr class="separator:a81e21eb19f45e15f7391913771a77b3e"><td class="memSeparator" colspan="2"> </td></tr> 83<tr class="memitem:a3155cc62c13a3fc5fa6f33876ab7f242"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a3155cc62c13a3fc5fa6f33876ab7f242">BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK</a>   48000000U</td></tr> 84<tr class="separator:a3155cc62c13a3fc5fa6f33876ab7f242"><td class="memSeparator" colspan="2"> </td></tr> 85<tr class="memitem:a5a8dfd649ce91ce9e0910e5970c62420"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a5a8dfd649ce91ce9e0910e5970c62420">BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK</a>   96000000U</td></tr> 86<tr class="separator:a5a8dfd649ce91ce9e0910e5970c62420"><td class="memSeparator" colspan="2"> </td></tr> 87</table><table class="memberdecls"> 88<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 89Functions</h2></td></tr> 90<tr class="memitem:a188981cc76bd64105a71096d9f4ae141"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a188981cc76bd64105a71096d9f4ae141">BOARD_BootClockFRO12M</a> (void)</td></tr> 91<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> 92<tr class="separator:a188981cc76bd64105a71096d9f4ae141"><td class="memSeparator" colspan="2"> </td></tr> 93<tr class="memitem:a845aa63903a75c799d4771a026c0cfa9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a845aa63903a75c799d4771a026c0cfa9">BOARD_BootClockFROHF48M</a> (void)</td></tr> 94<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> 95<tr class="separator:a845aa63903a75c799d4771a026c0cfa9"><td class="memSeparator" colspan="2"> </td></tr> 96<tr class="memitem:a245da4f80747dadd943a8891f2d6592d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a04292.html#a245da4f80747dadd943a8891f2d6592d">BOARD_BootClockFROHF96M</a> (void)</td></tr> 97<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> 98<tr class="separator:a245da4f80747dadd943a8891f2d6592d"><td class="memSeparator" colspan="2"> </td></tr> 99</table> 100<h2 class="groupheader">Macro Definition Documentation</h2> 101<a id="a81e21eb19f45e15f7391913771a77b3e"></a> 102<h2 class="memtitle"><span class="permalink"><a href="#a81e21eb19f45e15f7391913771a77b3e">◆ </a></span>BOARD_BOOTCLOCKFRO12M_CORE_CLOCK</h2> 103 104<div class="memitem"> 105<div class="memproto"> 106 <table class="memname"> 107 <tr> 108 <td class="memname">#define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK   12000000U</td> 109 </tr> 110 </table> 111</div><div class="memdoc"> 112<p>Core clock frequency: 12000000Hz </p> 113 114<p class="definition">Definition at line <a class="el" href="a04292_source.html#l00028">28</a> of file <a class="el" href="a04292_source.html">clock_config.h</a>.</p> 115 116<p class="reference">Referenced by <a class="el" href="a04235_source.html#l00063">BOARD_BootClockFRO12M()</a>.</p> 117 118</div> 119</div> 120<a id="a3155cc62c13a3fc5fa6f33876ab7f242"></a> 121<h2 class="memtitle"><span class="permalink"><a href="#a3155cc62c13a3fc5fa6f33876ab7f242">◆ </a></span>BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK</h2> 122 123<div class="memitem"> 124<div class="memproto"> 125 <table class="memname"> 126 <tr> 127 <td class="memname">#define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK   48000000U</td> 128 </tr> 129 </table> 130</div><div class="memdoc"> 131<p>Core clock frequency: 48000000Hz </p> 132 133<p class="definition">Definition at line <a class="el" href="a04292_source.html#l00053">53</a> of file <a class="el" href="a04292_source.html">clock_config.h</a>.</p> 134 135<p class="reference">Referenced by <a class="el" href="a04235_source.html#l00101">BOARD_BootClockFROHF48M()</a>.</p> 136 137</div> 138</div> 139<a id="a5a8dfd649ce91ce9e0910e5970c62420"></a> 140<h2 class="memtitle"><span class="permalink"><a href="#a5a8dfd649ce91ce9e0910e5970c62420">◆ </a></span>BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK</h2> 141 142<div class="memitem"> 143<div class="memproto"> 144 <table class="memname"> 145 <tr> 146 <td class="memname">#define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK   96000000U</td> 147 </tr> 148 </table> 149</div><div class="memdoc"> 150<p>Core clock frequency: 96000000Hz </p> 151 152<p class="definition">Definition at line <a class="el" href="a04292_source.html#l00078">78</a> of file <a class="el" href="a04292_source.html">clock_config.h</a>.</p> 153 154<p class="reference">Referenced by <a class="el" href="a04235_source.html#l00142">BOARD_BootClockFROHF96M()</a>.</p> 155 156</div> 157</div> 158<a id="a8d81431cbbc4b01da56afbff0f766379"></a> 159<h2 class="memtitle"><span class="permalink"><a href="#a8d81431cbbc4b01da56afbff0f766379">◆ </a></span>BOARD_BootClockRUN</h2> 160 161<div class="memitem"> 162<div class="memproto"> 163 <table class="memname"> 164 <tr> 165 <td class="memname">#define BOARD_BootClockRUN   <a class="el" href="a04292.html#a845aa63903a75c799d4771a026c0cfa9">BOARD_BootClockFROHF48M</a></td> 166 </tr> 167 </table> 168</div><div class="memdoc"> 169 170<p class="definition">Definition at line <a class="el" href="a04292_source.html#l00019">19</a> of file <a class="el" href="a04292_source.html">clock_config.h</a>.</p> 171 172<p class="reference">Referenced by <a class="el" href="a00929_source.html#l00103">main()</a>.</p> 173 174</div> 175</div> 176<a id="ad09513e3c601985fc61136ef6c0678f9"></a> 177<h2 class="memtitle"><span class="permalink"><a href="#ad09513e3c601985fc61136ef6c0678f9">◆ </a></span>BOARD_XTAL0_CLK_HZ</h2> 178 179<div class="memitem"> 180<div class="memproto"> 181 <table class="memname"> 182 <tr> 183 <td class="memname">#define BOARD_XTAL0_CLK_HZ   12000000U</td> 184 </tr> 185 </table> 186</div><div class="memdoc"> 187<p>Board xtal0 frequency in Hz </p> 188 189<p class="definition">Definition at line <a class="el" href="a04292_source.html#l00017">17</a> of file <a class="el" href="a04292_source.html">clock_config.h</a>.</p> 190 191</div> 192</div> 193<a id="ac2b7bb542e5cb061aec9ac2c07ec20a0"></a> 194<h2 class="memtitle"><span class="permalink"><a href="#ac2b7bb542e5cb061aec9ac2c07ec20a0">◆ </a></span>BOARD_XTAL32K_CLK_HZ</h2> 195 196<div class="memitem"> 197<div class="memproto"> 198 <table class="memname"> 199 <tr> 200 <td class="memname">#define BOARD_XTAL32K_CLK_HZ   32768U</td> 201 </tr> 202 </table> 203</div><div class="memdoc"> 204<p>Board xtal32K frequency in Hz </p> 205 206<p class="definition">Definition at line <a class="el" href="a04292_source.html#l00018">18</a> of file <a class="el" href="a04292_source.html">clock_config.h</a>.</p> 207 208<p class="reference">Referenced by <a class="el" href="a04256_source.html#l00133">BOARD_BootClockRUN()</a>.</p> 209 210</div> 211</div> 212<h2 class="groupheader">Function Documentation</h2> 213<a id="a188981cc76bd64105a71096d9f4ae141"></a> 214<h2 class="memtitle"><span class="permalink"><a href="#a188981cc76bd64105a71096d9f4ae141">◆ </a></span>BOARD_BootClockFRO12M()</h2> 215 216<div class="memitem"> 217<div class="memproto"> 218 <table class="memname"> 219 <tr> 220 <td class="memname">void BOARD_BootClockFRO12M </td> 221 <td>(</td> 222 <td class="paramtype">void </td> 223 <td class="paramname"></td><td>)</td> 224 <td></td> 225 </tr> 226 </table> 227</div><div class="memdoc"> 228 229<p>This function executes configuration of clocks. </p> 230<p>< Set up the clock sources</p> 231<p>< Set up FRO</p> 232<p>< Ensure FRO is on</p> 233<p>< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed</p> 234<p>< Set up FRO to the 12 MHz, just for sure</p> 235<p>< Set voltage for the one of the fastest clock outputs: System clock output</p> 236<p>< Set FLASH wait states for core</p> 237<p>< Set up dividers</p> 238<p>< Set AHBCLKDIV divider to value 1</p> 239<p>< Set up clock selectors - Attach clocks to the peripheries</p> 240<p>< Switch MAIN_CLK to FRO12M</p> 241<p>< Set SystemCoreClock variable.</p> 242<p>< Set up the clock sources</p> 243<p>< Configure FRO192M</p> 244<p>< Ensure FRO is on</p> 245<p>< Set up FRO to the 12 MHz, just for sure</p> 246<p>< Switch to FRO 12MHz first to ensure we can change the clock setting</p> 247<p>< Set FLASH wait states for core</p> 248<p>< Set up dividers</p> 249<p>< Set AHBCLKDIV divider to value 1</p> 250<p>< Set up clock selectors - Attach clocks to the peripheries</p> 251<p>< Switch MAIN_CLK to FRO12M </p> 252 253<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> 254 255</div> 256</div> 257<a id="a845aa63903a75c799d4771a026c0cfa9"></a> 258<h2 class="memtitle"><span class="permalink"><a href="#a845aa63903a75c799d4771a026c0cfa9">◆ </a></span>BOARD_BootClockFROHF48M()</h2> 259 260<div class="memitem"> 261<div class="memproto"> 262 <table class="memname"> 263 <tr> 264 <td class="memname">void BOARD_BootClockFROHF48M </td> 265 <td>(</td> 266 <td class="paramtype">void </td> 267 <td class="paramname"></td><td>)</td> 268 <td></td> 269 </tr> 270 </table> 271</div><div class="memdoc"> 272 273<p>This function executes configuration of clocks. </p> 274<p>< Set up the clock sources</p> 275<p>< Set up FRO</p> 276<p>< Ensure FRO is on</p> 277<p>< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed</p> 278<p>< Set voltage for the one of the fastest clock outputs: System clock output</p> 279<p>< Set FLASH wait states for core</p> 280<p>< Set up high frequency FRO output to selected frequency</p> 281<p>< Set up dividers</p> 282<p>< Set AHBCLKDIV divider to value 1</p> 283<p>< Set up clock selectors - Attach clocks to the peripheries</p> 284<p>< Switch MAIN_CLK to FRO_HF</p> 285<p>< Set SystemCoreClock variable. </p> 286 287<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> 288 289<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> 290 291</div> 292</div> 293<a id="a245da4f80747dadd943a8891f2d6592d"></a> 294<h2 class="memtitle"><span class="permalink"><a href="#a245da4f80747dadd943a8891f2d6592d">◆ </a></span>BOARD_BootClockFROHF96M()</h2> 295 296<div class="memitem"> 297<div class="memproto"> 298 <table class="memname"> 299 <tr> 300 <td class="memname">void BOARD_BootClockFROHF96M </td> 301 <td>(</td> 302 <td class="paramtype">void </td> 303 <td class="paramname"></td><td>)</td> 304 <td></td> 305 </tr> 306 </table> 307</div><div class="memdoc"> 308 309<p>This function executes configuration of clocks. </p> 310<p>< Set up the clock sources</p> 311<p>< Set up FRO</p> 312<p>< Ensure FRO is on</p> 313<p>< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed</p> 314<p>< Set voltage for the one of the fastest clock outputs: System clock output</p> 315<p>< Set FLASH wait states for core</p> 316<p>< Set up high frequency FRO output to selected frequency</p> 317<p>< Set up dividers</p> 318<p>< Set AHBCLKDIV divider to value 1</p> 319<p>< Set up clock selectors - Attach clocks to the peripheries</p> 320<p>< Switch MAIN_CLK to FRO_HF</p> 321<p>< Set SystemCoreClock variable.</p> 322<p>< Set up the clock sources</p> 323<p>< Configure FRO192M</p> 324<p>< Ensure FRO is on</p> 325<p>< Set up FRO to the 12 MHz, just for sure</p> 326<p>< Switch to FRO 12MHz first to ensure we can change the clock setting</p> 327<p>< Set FLASH wait states for core</p> 328<p>< Set up dividers</p> 329<p>< Set AHBCLKDIV divider to value 1</p> 330<p>< Set up clock selectors - Attach clocks to the peripheries</p> 331<p>< Switch MAIN_CLK to FRO_HF </p> 332 333<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> 334 335</div> 336</div> 337</div><!-- contents --> 338 339<hr class="footer"/><address class="footer"><small> 340© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 341</small></address> 342</body> 343</html> 344