esp8266-std/ESP8266_RTOS_SDK/documents/html/esp__system_8h_source.html

296 lines
47 KiB
HTML
Raw Normal View History

2018-11-23 01:43:17 +00:00
<!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.10"/>
<title>ESP8266_RTOS_SDK: include/espressif/esp_system.h Source File</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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ESP8266_RTOS_SDK
&#160;<span id="projectnumber">v1.4.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<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&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_cf4dbf1328d2cf10d3f3933741525dc7.html">espressif</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">esp_system.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * ESPRSSIF MIT License</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Copyright (c) 2015 &lt;ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * it is free of charge, to any person obtaining a copy of this software and associated</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * documentation files (the &quot;Software&quot;), to deal in the Software without restriction, including</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the Software is furnished</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in all copies or</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * substantial portions of the Software.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#ifndef __ESP_SYSTEM_H__</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#define __ESP_SYSTEM_H__</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &quot;c_types.h&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="group__System__APIs.html#gaf560461b4a37405f75fd789165f6c576"> 42</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576af39e71277c3bfc84b75a4a5683531565"> 43</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576af39e71277c3bfc84b75a4a5683531565">REASON_DEFAULT_RST</a> = 0, </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a90f8f58c2fec687ee00f4735bf24006d"> 44</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a90f8f58c2fec687ee00f4735bf24006d">REASON_WDT_RST</a>, </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a37032d096425911146ce105004cc8adb"> 45</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a37032d096425911146ce105004cc8adb">REASON_EXCEPTION_RST</a>, </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a57184a4fb4d760f85fd0834566bf6e9c"> 46</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a57184a4fb4d760f85fd0834566bf6e9c">REASON_SOFT_WDT_RST</a>, </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a6d052f0a22d1b1d060a7e017f6152559"> 47</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a6d052f0a22d1b1d060a7e017f6152559">REASON_SOFT_RESTART</a>, </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576acee6519d545f6be1bac3e00be8637ee7"> 48</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576acee6519d545f6be1bac3e00be8637ee7">REASON_DEEP_SLEEP_AWAKE</a>, </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a9ab5cbcccb384a176990019a8e1b2cc8"> 49</a></span>&#160; <a class="code" href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a9ab5cbcccb384a176990019a8e1b2cc8">REASON_EXT_SYS_RST</a> </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;} <a class="code" href="group__System__APIs.html#gaf560461b4a37405f75fd789165f6c576">rst_reason</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structrst__info.html"> 52</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structrst__info.html">rst_info</a> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structrst__info.html#af5b53fbb4b238f9aa0261eed1236b9ba"> 53</a></span>&#160; <a class="code" href="group__System__APIs.html#gaf560461b4a37405f75fd789165f6c576">rst_reason</a> <a class="code" href="structrst__info.html#af5b53fbb4b238f9aa0261eed1236b9ba">reason</a>; </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; uint32 exccause;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; uint32 epc1;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; uint32 epc2;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; uint32 epc3;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; uint32 excvaddr;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; uint32 depc;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; uint32 rtn_addr;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;};</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="keyword">struct </span><a class="code" href="structrst__info.html">rst_info</a> *<a class="code" href="group__System__APIs.html#ga9f0263b1c227015248c7020e41d787b9">system_get_rst_info</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__System__APIs.html#ga82dfc665528462dbaa945e45512b8c93">system_get_sdk_version</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#gae04bb6e4dba5ca53c4f5af629c235bec">system_restore</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga80e0119dbfcaaa43025fe2135d3d1efc">system_restart</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga2b2d62411a8baa3b7fec777d281397e1">system_deep_sleep</a>(uint32 time_in_us);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__APIs.html#gaaaf7c29067d92bf6c03747b4ad2c2bf6">system_deep_sleep_set_option</a>(uint8 option);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;uint32 <a class="code" href="group__System__APIs.html#gaff40fbcef002e346e8f36c378cf75d86">system_get_time</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga3103885b6ff682cac77fea78c2b73425">system_print_meminfo</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;uint32 <a class="code" href="group__System__APIs.html#ga258edd68184bb78f062a3b375dca997c">system_get_free_heap_size</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;uint32 <a class="code" href="group__System__APIs.html#ga86228f8d572c91ec871684121dad0647">system_get_chip_id</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;uint32 <a class="code" href="group__System__APIs.html#ga53909af3917e5dafc57c5a4d75e6ca2a">system_rtc_clock_cali_proc</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;uint32 <a class="code" href="group__System__APIs.html#gaff1e2f744888e01d75bbb1cb2fdee0cb">system_get_rtc_time</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__APIs.html#gac89e6906018b3f4ccd1ba4059f344d5e">system_rtc_mem_read</a>(uint8 src, <span class="keywordtype">void</span> *dst, uint16 n);</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__APIs.html#ga669af802153a408dbf9b8b34697e34e2">system_rtc_mem_write</a>(uint8 dst, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, uint16 n);</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga6fc697cba1894da7a66d8816ec590682">system_uart_swap</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160;</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga2fe928c2d760669eaa7928b6e00c615c">system_uart_de_swap</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160;uint16 <a class="code" href="group__System__APIs.html#ga3b49ed94048da366d384364482c5ae43">system_adc_read</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160;</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;uint16 <a class="code" href="group__System__APIs.html#gacf1baad08cac941b54b44126045e38cc">system_get_vdd33</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160;</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__APIs.html#gae68a7b6345630e42fde3e827108571e0">system_param_save_with_protect</a>(uint16 start_sec, <span class="keywordtype">void</span> *param, uint16 len);</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__APIs.html#ga753aade115708d360f25bff422ef1f55">system_param_load</a>(uint16 start_sec, uint16 offset, <span class="keywordtype">void</span> *param, uint16 len);</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160;</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#gafc39ba5754615bd82e13302e289651ee">system_phy_set_max_tpw</a>(uint8 max_tpw);</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160;</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga7d3301798674f7ed1163f0b2ed333c44">system_phy_set_tpw_via_vdd33</a>(uint16 vdd33);</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160;</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__System__APIs.html#ga96d92897e242b7f1bcd484e58f3b4a66">system_phy_set_rfoption</a>(uint8 option);</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160;</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160;uint8 <a class="code" href="group__Upgrade__APIs.html#gad04181af74584d470c30d6c21dd2db85">system_upgrade_userbin_check</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160;</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__Upgrade__APIs.html#gafbc93a806155a9cf65d25119df0c6b1d">system_upgrade_reboot</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160;</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160;uint8 <a class="code" href="group__Upgrade__APIs.html#ga18b07d5b7a8b951a41da50506e03c837">system_upgrade_flag_check</a>();</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;</div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__Upgrade__APIs.html#ga6760e9df629662611372bcdfca7a4f77">system_upgrade_flag_set</a>(uint8 flag);</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160;</div>
<div class="line"><a name="l00473"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#ga04009897446ea5a0c5aa3d3c6ef01357"> 473</a></span>&#160;<span class="preprocessor">#define SYS_BOOT_ENHANCE_MODE 0 </span></div>
<div class="line"><a name="l00474"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#ga993bbfc899c5495e5600dea34e5400bd"> 474</a></span>&#160;<span class="preprocessor">#define SYS_BOOT_NORMAL_MODE 1 </span></div>
<div class="line"><a name="l00476"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#ga52853f4dcc9a1208fbb366e59efb3054"> 476</a></span>&#160;<span class="preprocessor">#define SYS_BOOT_NORMAL_BIN 0 </span></div>
<div class="line"><a name="l00477"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gabcadf084776b83e26f0f3db8f0bdfbe1"> 477</a></span>&#160;<span class="preprocessor">#define SYS_BOOT_TEST_BIN 1 </span></div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160;<span class="preprocessor">uint8 system_get_boot_version(void);</span></div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160;</div>
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160;uint32 <a class="code" href="group__System__boot__APIs.html#gaa2fd426b0a2cb0bf77cbc0868ad63e77">system_get_userbin_addr</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160;</div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>&#160;uint8 <a class="code" href="group__System__boot__APIs.html#ga0663faaa88f4c899daf21e54400dfed0">system_get_boot_mode</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160;</div>
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__boot__APIs.html#gaf7b2162f7ed788f3e8d8d90b27f60e7f">system_restart_enhance</a>(uint8 bin_type, uint32 bin_addr);</div>
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>&#160;</div>
<div class="line"><a name="l00526"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#ga09fedddfc198c6f5b12e795d7a560de2"> 526</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00527"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a4c0ac10cfa5e7ecc6cc95b60e0faeb70"> 527</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a4c0ac10cfa5e7ecc6cc95b60e0faeb70">FLASH_SIZE_4M_MAP_256_256</a> = 0, </div>
<div class="line"><a name="l00528"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a68191ccca310b30e6a0f6cfac494321c"> 528</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a68191ccca310b30e6a0f6cfac494321c">FLASH_SIZE_2M</a>, </div>
<div class="line"><a name="l00529"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a6de4efc98763d016d92d87fb73ca8849"> 529</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a6de4efc98763d016d92d87fb73ca8849">FLASH_SIZE_8M_MAP_512_512</a>, </div>
<div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a58eeb18a28a2904a2424ce808ed0e2a6"> 530</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a58eeb18a28a2904a2424ce808ed0e2a6">FLASH_SIZE_16M_MAP_512_512</a>, </div>
<div class="line"><a name="l00531"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2af31f99de17734586c910bddfe8c427bf"> 531</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2af31f99de17734586c910bddfe8c427bf">FLASH_SIZE_32M_MAP_512_512</a>, </div>
<div class="line"><a name="l00532"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a1c1807f4d5cccfdf38f15a603e7557ce"> 532</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a1c1807f4d5cccfdf38f15a603e7557ce">FLASH_SIZE_16M_MAP_1024_1024</a>, </div>
<div class="line"><a name="l00533"></a><span class="lineno"><a class="line" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2aa88e113314ba8a3de7fe693c1c14b9a0"> 533</a></span>&#160; <a class="code" href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2aa88e113314ba8a3de7fe693c1c14b9a0">FLASH_SIZE_32M_MAP_1024_1024</a> </div>
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>&#160;} <a class="code" href="group__System__boot__APIs.html#ga09fedddfc198c6f5b12e795d7a560de2">flash_size_map</a>;</div>
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>&#160;</div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span>&#160;<a class="code" href="group__System__boot__APIs.html#ga09fedddfc198c6f5b12e795d7a560de2">flash_size_map</a> <a class="code" href="group__System__boot__APIs.html#gae173ade9144230f0b8f950a804d4afd5">system_get_flash_size_map</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span>&#160;</div>
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span>&#160;<span class="preprocessor">#define SYS_CPU_80MHZ 80</span></div>
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span>&#160;<span class="preprocessor">#define SYS_CPU_160MHZ 160</span></div>
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span>&#160;</div>
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__System__boot__APIs.html#ga0590aa925e7f87eb6cfc81d5577fc98a">system_update_cpu_freq</a>(uint8 freq);</div>
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>&#160;</div>
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span>&#160;uint8 <a class="code" href="group__System__boot__APIs.html#ga9ed4a3a5a4d57e26ed5250a423a5c3a0">system_get_cpu_freq</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span>&#160;</div>
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span>&#160;}</div>
<div class="line"><a name="l00584"></a><span class="lineno"> 584</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span>&#160;</div>
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="group__System__APIs_html_gacf1baad08cac941b54b44126045e38cc"><div class="ttname"><a href="group__System__APIs.html#gacf1baad08cac941b54b44126045e38cc">system_get_vdd33</a></div><div class="ttdeci">uint16 system_get_vdd33(void)</div><div class="ttdoc">Measure the power voltage of VDD3P3 pin 3 and 4, unit : 1/1024 V. </div></div>
<div class="ttc" id="group__System__APIs_html_ga86228f8d572c91ec871684121dad0647"><div class="ttname"><a href="group__System__APIs.html#ga86228f8d572c91ec871684121dad0647">system_get_chip_id</a></div><div class="ttdeci">uint32 system_get_chip_id(void)</div><div class="ttdoc">Get the chip ID. </div></div>
<div class="ttc" id="group__System__APIs_html_ga6fc697cba1894da7a66d8816ec590682"><div class="ttname"><a href="group__System__APIs.html#ga6fc697cba1894da7a66d8816ec590682">system_uart_swap</a></div><div class="ttdeci">void system_uart_swap(void)</div><div class="ttdoc">UART0 swap. </div></div>
<div class="ttc" id="group__System__APIs_html_ga9f0263b1c227015248c7020e41d787b9"><div class="ttname"><a href="group__System__APIs.html#ga9f0263b1c227015248c7020e41d787b9">system_get_rst_info</a></div><div class="ttdeci">struct rst_info * system_get_rst_info(void)</div><div class="ttdoc">Get the reason of restart. </div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576a57184a4fb4d760f85fd0834566bf6e9c"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a57184a4fb4d760f85fd0834566bf6e9c">REASON_SOFT_WDT_RST</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:46</div></div>
<div class="ttc" id="group__System__APIs_html_ga96d92897e242b7f1bcd484e58f3b4a66"><div class="ttname"><a href="group__System__APIs.html#ga96d92897e242b7f1bcd484e58f3b4a66">system_phy_set_rfoption</a></div><div class="ttdeci">void system_phy_set_rfoption(uint8 option)</div><div class="ttdoc">Enable RF or not when wakeup from deep-sleep. </div></div>
<div class="ttc" id="group__System__APIs_html_ga3103885b6ff682cac77fea78c2b73425"><div class="ttname"><a href="group__System__APIs.html#ga3103885b6ff682cac77fea78c2b73425">system_print_meminfo</a></div><div class="ttdeci">void system_print_meminfo(void)</div><div class="ttdoc">Print the system memory distribution, including data/rodata/bss/heap. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2a68191ccca310b30e6a0f6cfac494321c"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a68191ccca310b30e6a0f6cfac494321c">FLASH_SIZE_2M</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:528</div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576a9ab5cbcccb384a176990019a8e1b2cc8"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a9ab5cbcccb384a176990019a8e1b2cc8">REASON_EXT_SYS_RST</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:49</div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576a6d052f0a22d1b1d060a7e017f6152559"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a6d052f0a22d1b1d060a7e017f6152559">REASON_SOFT_RESTART</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:47</div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2a58eeb18a28a2904a2424ce808ed0e2a6"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a58eeb18a28a2904a2424ce808ed0e2a6">FLASH_SIZE_16M_MAP_512_512</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:530</div></div>
<div class="ttc" id="group__Upgrade__APIs_html_ga6760e9df629662611372bcdfca7a4f77"><div class="ttname"><a href="group__Upgrade__APIs.html#ga6760e9df629662611372bcdfca7a4f77">system_upgrade_flag_set</a></div><div class="ttdeci">void system_upgrade_flag_set(uint8 flag)</div><div class="ttdoc">Set the upgrade status flag. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2aa88e113314ba8a3de7fe693c1c14b9a0"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2aa88e113314ba8a3de7fe693c1c14b9a0">FLASH_SIZE_32M_MAP_1024_1024</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:533</div></div>
<div class="ttc" id="group__System__APIs_html_gae04bb6e4dba5ca53c4f5af629c235bec"><div class="ttname"><a href="group__System__APIs.html#gae04bb6e4dba5ca53c4f5af629c235bec">system_restore</a></div><div class="ttdeci">void system_restore(void)</div><div class="ttdoc">Reset to default settings. </div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576acee6519d545f6be1bac3e00be8637ee7"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576acee6519d545f6be1bac3e00be8637ee7">REASON_DEEP_SLEEP_AWAKE</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:48</div></div>
<div class="ttc" id="group__System__boot__APIs_html_ga9ed4a3a5a4d57e26ed5250a423a5c3a0"><div class="ttname"><a href="group__System__boot__APIs.html#ga9ed4a3a5a4d57e26ed5250a423a5c3a0">system_get_cpu_freq</a></div><div class="ttdeci">uint8 system_get_cpu_freq(void)</div><div class="ttdoc">Get CPU frequency. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_ga0663faaa88f4c899daf21e54400dfed0"><div class="ttname"><a href="group__System__boot__APIs.html#ga0663faaa88f4c899daf21e54400dfed0">system_get_boot_mode</a></div><div class="ttdeci">uint8 system_get_boot_mode(void)</div><div class="ttdoc">Get the boot mode. </div></div>
<div class="ttc" id="group__Upgrade__APIs_html_ga18b07d5b7a8b951a41da50506e03c837"><div class="ttname"><a href="group__Upgrade__APIs.html#ga18b07d5b7a8b951a41da50506e03c837">system_upgrade_flag_check</a></div><div class="ttdeci">uint8 system_upgrade_flag_check()</div><div class="ttdoc">Check the upgrade status flag. </div></div>
<div class="ttc" id="structrst__info_html"><div class="ttname"><a href="structrst__info.html">rst_info</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:52</div></div>
<div class="ttc" id="group__System__APIs_html_ga258edd68184bb78f062a3b375dca997c"><div class="ttname"><a href="group__System__APIs.html#ga258edd68184bb78f062a3b375dca997c">system_get_free_heap_size</a></div><div class="ttdeci">uint32 system_get_free_heap_size(void)</div><div class="ttdoc">Get the size of available heap. </div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576a90f8f58c2fec687ee00f4735bf24006d"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a90f8f58c2fec687ee00f4735bf24006d">REASON_WDT_RST</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:44</div></div>
<div class="ttc" id="group__System__APIs_html_gae68a7b6345630e42fde3e827108571e0"><div class="ttname"><a href="group__System__APIs.html#gae68a7b6345630e42fde3e827108571e0">system_param_save_with_protect</a></div><div class="ttdeci">bool system_param_save_with_protect(uint16 start_sec, void *param, uint16 len)</div><div class="ttdoc">Write data into flash with protection. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2a6de4efc98763d016d92d87fb73ca8849"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a6de4efc98763d016d92d87fb73ca8849">FLASH_SIZE_8M_MAP_512_512</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:529</div></div>
<div class="ttc" id="group__System__APIs_html_ga7d3301798674f7ed1163f0b2ed333c44"><div class="ttname"><a href="group__System__APIs.html#ga7d3301798674f7ed1163f0b2ed333c44">system_phy_set_tpw_via_vdd33</a></div><div class="ttdeci">void system_phy_set_tpw_via_vdd33(uint16 vdd33)</div><div class="ttdoc">Adjust the RF TX Power according to VDD33, unit : 1/1024 V. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2a1c1807f4d5cccfdf38f15a603e7557ce"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a1c1807f4d5cccfdf38f15a603e7557ce">FLASH_SIZE_16M_MAP_1024_1024</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:532</div></div>
<div class="ttc" id="group__System__APIs_html_ga3b49ed94048da366d384364482c5ae43"><div class="ttname"><a href="group__System__APIs.html#ga3b49ed94048da366d384364482c5ae43">system_adc_read</a></div><div class="ttdeci">uint16 system_adc_read(void)</div><div class="ttdoc">Measure the input voltage of TOUT pin 6, unit : 1/1024 V. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gaa2fd426b0a2cb0bf77cbc0868ad63e77"><div class="ttname"><a href="group__System__boot__APIs.html#gaa2fd426b0a2cb0bf77cbc0868ad63e77">system_get_userbin_addr</a></div><div class="ttdeci">uint32 system_get_userbin_addr(void)</div><div class="ttdoc">Get the address of the current running user bin (user1.bin or user2.bin). </div></div>
<div class="ttc" id="group__System__boot__APIs_html_ga09fedddfc198c6f5b12e795d7a560de2"><div class="ttname"><a href="group__System__boot__APIs.html#ga09fedddfc198c6f5b12e795d7a560de2">flash_size_map</a></div><div class="ttdeci">flash_size_map</div><div class="ttdef"><b>Definition:</b> esp_system.h:526</div></div>
<div class="ttc" id="group__System__APIs_html_ga80e0119dbfcaaa43025fe2135d3d1efc"><div class="ttname"><a href="group__System__APIs.html#ga80e0119dbfcaaa43025fe2135d3d1efc">system_restart</a></div><div class="ttdeci">void system_restart(void)</div><div class="ttdoc">Restart system. </div></div>
<div class="ttc" id="group__System__APIs_html_ga2b2d62411a8baa3b7fec777d281397e1"><div class="ttname"><a href="group__System__APIs.html#ga2b2d62411a8baa3b7fec777d281397e1">system_deep_sleep</a></div><div class="ttdeci">void system_deep_sleep(uint32 time_in_us)</div><div class="ttdoc">Set the chip to deep-sleep mode. </div></div>
<div class="ttc" id="structrst__info_html_af5b53fbb4b238f9aa0261eed1236b9ba"><div class="ttname"><a href="structrst__info.html#af5b53fbb4b238f9aa0261eed1236b9ba">rst_info::reason</a></div><div class="ttdeci">rst_reason reason</div><div class="ttdef"><b>Definition:</b> esp_system.h:53</div></div>
<div class="ttc" id="group__System__APIs_html_ga753aade115708d360f25bff422ef1f55"><div class="ttname"><a href="group__System__APIs.html#ga753aade115708d360f25bff422ef1f55">system_param_load</a></div><div class="ttdeci">bool system_param_load(uint16 start_sec, uint16 offset, void *param, uint16 len)</div><div class="ttdoc">Read the data saved into flash with the read/write protection. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gaf7b2162f7ed788f3e8d8d90b27f60e7f"><div class="ttname"><a href="group__System__boot__APIs.html#gaf7b2162f7ed788f3e8d8d90b27f60e7f">system_restart_enhance</a></div><div class="ttdeci">bool system_restart_enhance(uint8 bin_type, uint32 bin_addr)</div><div class="ttdoc">Restarts the system, and enters the enhanced boot mode. </div></div>
<div class="ttc" id="group__System__APIs_html_gaff1e2f744888e01d75bbb1cb2fdee0cb"><div class="ttname"><a href="group__System__APIs.html#gaff1e2f744888e01d75bbb1cb2fdee0cb">system_get_rtc_time</a></div><div class="ttdeci">uint32 system_get_rtc_time(void)</div><div class="ttdoc">Get RTC time, unit: RTC clock cycle. </div></div>
<div class="ttc" id="group__System__APIs_html_gaaaf7c29067d92bf6c03747b4ad2c2bf6"><div class="ttname"><a href="group__System__APIs.html#gaaaf7c29067d92bf6c03747b4ad2c2bf6">system_deep_sleep_set_option</a></div><div class="ttdeci">bool system_deep_sleep_set_option(uint8 option)</div><div class="ttdoc">Call this API before system_deep_sleep to set the activity after the next deep-sleep wakeup...</div></div>
<div class="ttc" id="group__System__APIs_html_gaff40fbcef002e346e8f36c378cf75d86"><div class="ttname"><a href="group__System__APIs.html#gaff40fbcef002e346e8f36c378cf75d86">system_get_time</a></div><div class="ttdeci">uint32 system_get_time(void)</div><div class="ttdoc">Get system time, unit: microsecond. </div></div>
<div class="ttc" id="group__System__APIs_html_ga669af802153a408dbf9b8b34697e34e2"><div class="ttname"><a href="group__System__APIs.html#ga669af802153a408dbf9b8b34697e34e2">system_rtc_mem_write</a></div><div class="ttdeci">bool system_rtc_mem_write(uint8 dst, const void *src, uint16 n)</div><div class="ttdoc">Write user data to the RTC memory. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_ga0590aa925e7f87eb6cfc81d5577fc98a"><div class="ttname"><a href="group__System__boot__APIs.html#ga0590aa925e7f87eb6cfc81d5577fc98a">system_update_cpu_freq</a></div><div class="ttdeci">bool system_update_cpu_freq(uint8 freq)</div><div class="ttdoc">Set CPU frequency. Default is 80MHz. </div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576af39e71277c3bfc84b75a4a5683531565"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576af39e71277c3bfc84b75a4a5683531565">REASON_DEFAULT_RST</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:43</div></div>
<div class="ttc" id="group__System__APIs_html_gaf560461b4a37405f75fd789165f6c576"><div class="ttname"><a href="group__System__APIs.html#gaf560461b4a37405f75fd789165f6c576">rst_reason</a></div><div class="ttdeci">rst_reason</div><div class="ttdef"><b>Definition:</b> esp_system.h:42</div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2af31f99de17734586c910bddfe8c427bf"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2af31f99de17734586c910bddfe8c427bf">FLASH_SIZE_32M_MAP_512_512</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:531</div></div>
<div class="ttc" id="group__System__boot__APIs_html_gga09fedddfc198c6f5b12e795d7a560de2a4c0ac10cfa5e7ecc6cc95b60e0faeb70"><div class="ttname"><a href="group__System__boot__APIs.html#gga09fedddfc198c6f5b12e795d7a560de2a4c0ac10cfa5e7ecc6cc95b60e0faeb70">FLASH_SIZE_4M_MAP_256_256</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:527</div></div>
<div class="ttc" id="group__Upgrade__APIs_html_gafbc93a806155a9cf65d25119df0c6b1d"><div class="ttname"><a href="group__Upgrade__APIs.html#gafbc93a806155a9cf65d25119df0c6b1d">system_upgrade_reboot</a></div><div class="ttdeci">void system_upgrade_reboot(void)</div><div class="ttdoc">Reboot system to use the new software. </div></div>
<div class="ttc" id="group__System__APIs_html_gac89e6906018b3f4ccd1ba4059f344d5e"><div class="ttname"><a href="group__System__APIs.html#gac89e6906018b3f4ccd1ba4059f344d5e">system_rtc_mem_read</a></div><div class="ttdeci">bool system_rtc_mem_read(uint8 src, void *dst, uint16 n)</div><div class="ttdoc">Read user data from the RTC memory. </div></div>
<div class="ttc" id="group__System__APIs_html_gafc39ba5754615bd82e13302e289651ee"><div class="ttname"><a href="group__System__APIs.html#gafc39ba5754615bd82e13302e289651ee">system_phy_set_max_tpw</a></div><div class="ttdeci">void system_phy_set_max_tpw(uint8 max_tpw)</div><div class="ttdoc">Set the maximum value of RF TX Power, unit : 0.25dBm. </div></div>
<div class="ttc" id="group__System__boot__APIs_html_gae173ade9144230f0b8f950a804d4afd5"><div class="ttname"><a href="group__System__boot__APIs.html#gae173ade9144230f0b8f950a804d4afd5">system_get_flash_size_map</a></div><div class="ttdeci">flash_size_map system_get_flash_size_map(void)</div><div class="ttdoc">Get the current Flash size and Flash map. </div></div>
<div class="ttc" id="group__System__APIs_html_ggaf560461b4a37405f75fd789165f6c576a37032d096425911146ce105004cc8adb"><div class="ttname"><a href="group__System__APIs.html#ggaf560461b4a37405f75fd789165f6c576a37032d096425911146ce105004cc8adb">REASON_EXCEPTION_RST</a></div><div class="ttdef"><b>Definition:</b> esp_system.h:45</div></div>
<div class="ttc" id="group__System__APIs_html_ga82dfc665528462dbaa945e45512b8c93"><div class="ttname"><a href="group__System__APIs.html#ga82dfc665528462dbaa945e45512b8c93">system_get_sdk_version</a></div><div class="ttdeci">const char * system_get_sdk_version(void)</div><div class="ttdoc">Get information of the SDK version. </div></div>
<div class="ttc" id="group__System__APIs_html_ga53909af3917e5dafc57c5a4d75e6ca2a"><div class="ttname"><a href="group__System__APIs.html#ga53909af3917e5dafc57c5a4d75e6ca2a">system_rtc_clock_cali_proc</a></div><div class="ttdeci">uint32 system_rtc_clock_cali_proc(void)</div><div class="ttdoc">Get the RTC clock cycle. </div></div>
<div class="ttc" id="group__Upgrade__APIs_html_gad04181af74584d470c30d6c21dd2db85"><div class="ttname"><a href="group__Upgrade__APIs.html#gad04181af74584d470c30d6c21dd2db85">system_upgrade_userbin_check</a></div><div class="ttdeci">uint8 system_upgrade_userbin_check(void)</div><div class="ttdoc">Check the user bin. </div></div>
<div class="ttc" id="group__System__APIs_html_ga2fe928c2d760669eaa7928b6e00c615c"><div class="ttname"><a href="group__System__APIs.html#ga2fe928c2d760669eaa7928b6e00c615c">system_uart_de_swap</a></div><div class="ttdeci">void system_uart_de_swap(void)</div><div class="ttdoc">Disable UART0 swap. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Mar 1 2016 10:19:26 for ESP8266_RTOS_SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>