<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS: include/net/arch.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="../../navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../resize.js"></script> <script type="text/javascript" src="../../navtreedata.js"></script> <script type="text/javascript" src="../../navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</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">UbixOS  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('../../',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d2/d2d/arch_8h_source.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">arch.h</div> </div> </div><!--header--> <div class="contents"> <a href="../../d2/d2d/arch_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/*</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Copyright (c) 2001-2004 Swedish Institute of Computer Science.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * All rights reserved.</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * are permitted provided that the following conditions are met:</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 1. Redistributions of source code must retain the above copyright notice,</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * this list of conditions and the following disclaimer.</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * this list of conditions and the following disclaimer in the documentation</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * and/or other materials provided with the distribution.</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * 3. The name of the author may not be used to endorse or promote products</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * derived from this software without specific prior written permission.</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> *</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * OF SUCH DAMAGE.</span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> *</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> * This file is part of the lwIP TCP/IP stack.</span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> *</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> * Author: Adam Dunkels <adam@sics.se></span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> *</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> */</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#ifndef LWIP_HDR_ARCH_H</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#define LWIP_HDR_ARCH_H</span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#ifndef LITTLE_ENDIAN</span></div> <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d2/d2d/arch_8h.html#a8782a401fbf55261460863fc2f8df1ce"> 41</a></span> <span class="preprocessor">#define LITTLE_ENDIAN 1234</span></div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#ifndef BIG_ENDIAN</span></div> <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d2/d2d/arch_8h.html#a23eb5e058a210efdde3d64e69679fafa"> 45</a></span> <span class="preprocessor">#define BIG_ENDIAN 4321</span></div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#include <<a class="code" href="../../d0/d27/include_2sys_2types_8h.html">sys/types.h</a>></span></div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#include <<a class="code" href="../../dc/df0/cc_8h.html">net/arch/cc.h</a>></span></div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#include <<a class="code" href="../../da/d28/kprintf_8h.html">lib/kprintf.h</a>></span></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#include <<a class="code" href="../../d3/d24/kpanic_8h.html">ubixos/kpanic.h</a>></span></div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#ifndef BYTE_ORDER</span></div> <div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga1771b7fb65ee640524d0052f229768c3"> 68</a></span> <span class="preprocessor">#define BYTE_ORDER LITTLE_ENDIAN</span></div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#ifdef __DOXYGEN__</span></div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#define LWIP_RAND() ((u32_t)rand())</span></div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#ifndef LWIP_PLATFORM_DIAG</span></div> <div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaccef167be13a500ce30036030a9b142b"> 82</a></span> <span class="preprocessor">#define LWIP_PLATFORM_DIAG(x) do {kprintf x;} while(0)</span></div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="preprocessor">#ifndef LWIP_PLATFORM_ASSERT</span></div> <div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga7e8bcd0282525704d6dd596bdd1b47d0"> 91</a></span> <span class="preprocessor">#define LWIP_PLATFORM_ASSERT(x) do {kprintf("Assertion \"%s\" failed at line %d in %s\n", x, __LINE__, __FILE__); kpanic("asserted");} while(0)</span></div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#ifndef LWIP_NO_STDDEF_H</span></div> <div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga53954d507c09e521ec0d44a2450bb89d"> 99</a></span> <span class="preprocessor">#define LWIP_NO_STDDEF_H 0</span></div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor">#if !LWIP_NO_STDDEF_H</span></div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">/* for size_t */</span></div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment">/* MrOlsen 2017-12-17</span></div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">#include <stddef.h></span></div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">*/</span></div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#ifndef LWIP_NO_STDINT_H</span></div> <div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga122c754db96ecad23bc6f4541d6360c1"> 114</a></span> <span class="preprocessor">#define LWIP_NO_STDINT_H 0</span></div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment">/* Define generic types used in lwIP */</span></div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#if !LWIP_NO_STDINT_H</span></div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">/* MrOlsen 2017-12-17</span></div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">#include <stdint.h></span></div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">*/</span></div> <div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e"> 122</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a2aff71146ab4942b2b38860c749c4074">uint8_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a>;</div> <div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga9cd1d7891fe315de1201e2c6e45f4f57"> 123</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a06ffba8acf5d133104191f183e67ac8c">int8_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga9cd1d7891fe315de1201e2c6e45f4f57">s8_t</a>;</div> <div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2"> 124</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a>;</div> <div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gacf46f4df0ebab84edebcb69967fdf86b"> 125</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a3542c6a0490e65fc4fc407273126e64f">int16_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#gacf46f4df0ebab84edebcb69967fdf86b">s16_t</a>;</div> <div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33"> 126</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a>;</div> <div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga10f9a3d7baef58ccc23228c3bd29c1fb"> 127</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a6f6221103820f185abcc62b874665a93">int32_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga10f9a3d7baef58ccc23228c3bd29c1fb">s32_t</a>;</div> <div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaf019cbb71af10dcfda7758b21e655307"> 128</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a09674b9e56fd7a93a2169aa9210deec7">uintptr_t</a> <a class="code" href="../../de/d8c/group__compiler__abstraction.html#gaf019cbb71af10dcfda7758b21e655307">mem_ptr_t</a>;</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="preprocessor">#ifndef LWIP_NO_INTTYPES_H</span></div> <div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga5bf52d6f2729d0c8afd365f69d7d4373"> 136</a></span> <span class="preprocessor">#define LWIP_NO_INTTYPES_H 0</span></div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment">/* Define (sn)printf formatters for these lwIP types */</span></div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor">#if !LWIP_NO_INTTYPES_H</span></div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment">/* MrOlsen</span></div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment">#include <inttypes.h></span></div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">*/</span></div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#ifndef X8_F</span></div> <div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga90c130a97711a9d7e5015c610f2dfe8f"> 145</a></span> <span class="preprocessor">#define X8_F "02" PRIx8</span></div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="preprocessor">#ifndef U16_F</span></div> <div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaa9d7f6eb2ee9fcc5eda3545dbb1886e0"> 148</a></span> <span class="preprocessor">#define U16_F PRIu16</span></div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor">#ifndef S16_F</span></div> <div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gac05a82d37afb251470f5e17ca15ab6e9"> 151</a></span> <span class="preprocessor">#define S16_F PRId16</span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor">#ifndef X16_F</span></div> <div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga1418f92673e54a36b6e376109e526382"> 154</a></span> <span class="preprocessor">#define X16_F PRIx16</span></div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="preprocessor">#ifndef U32_F</span></div> <div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gad8b0a364e95b07cb0c47709fdc6037d6"> 157</a></span> <span class="preprocessor">#define U32_F PRIu32</span></div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor">#ifndef S32_F</span></div> <div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga4b1eca99bc81e248c7074ea87fc9ca63"> 160</a></span> <span class="preprocessor">#define S32_F PRId32</span></div> <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="preprocessor">#ifndef X32_F</span></div> <div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gac219830a93d05c5f18f64ce87a34be14"> 163</a></span> <span class="preprocessor">#define X32_F PRIx32</span></div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor">#ifndef SZT_F</span></div> <div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga4cd359b6110f318ef71814587e1df029"> 166</a></span> <span class="preprocessor">#define SZT_F PRIuPTR</span></div> <div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor">#ifndef LWIP_NO_LIMITS_H</span></div> <div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gade9c8513419a799cd78a07ae894bb805"> 175</a></span> <span class="preprocessor">#define LWIP_NO_LIMITS_H 0</span></div> <div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div> <div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">/* Include limits.h? */</span></div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="preprocessor">#if !LWIP_NO_LIMITS_H</span></div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment">/*</span></div> <div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment">#include <limits.h></span></div> <div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">*/</span></div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="preprocessor">#ifndef LWIP_CONST_CAST</span></div> <div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaa0dd3f76dd9a837feaac61fedc0dbe72"> 187</a></span> <span class="preprocessor">#define LWIP_CONST_CAST(target_type, val) ((target_type)((ptrdiff_t)val))</span></div> <div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div> <div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#ifndef LWIP_ALIGNMENT_CAST</span></div> <div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaade87973d72135b0b3afccfff4f62eb8"> 192</a></span> <span class="preprocessor">#define LWIP_ALIGNMENT_CAST(target_type, val) LWIP_CONST_CAST(target_type, val)</span></div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor">#ifndef LWIP_PTR_NUMERIC_CAST</span></div> <div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga683e5c35d3263fe3145e6a6bc546604a"> 199</a></span> <span class="preprocessor">#define LWIP_PTR_NUMERIC_CAST(target_type, val) LWIP_CONST_CAST(target_type, val)</span></div> <div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor">#ifndef LWIP_DECLARE_MEMORY_ALIGNED</span></div> <div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga651bb349041669fe717b19f127ef16c0"> 213</a></span> <span class="preprocessor">#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[LWIP_MEM_ALIGN_BUFFER(size)]</span></div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="preprocessor">#ifndef LWIP_MEM_ALIGN_SIZE</span></div> <div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaef204be511fd32f681b55abc08e9ae18"> 221</a></span> <span class="preprocessor">#define LWIP_MEM_ALIGN_SIZE(size) (((size) + MEM_ALIGNMENT - 1U) & ~(MEM_ALIGNMENT-1U))</span></div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="preprocessor">#ifndef LWIP_MEM_ALIGN_BUFFER</span></div> <div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga25591dcb72fccc7b5dc46fbc1959694e"> 229</a></span> <span class="preprocessor">#define LWIP_MEM_ALIGN_BUFFER(size) (((size) + MEM_ALIGNMENT - 1U))</span></div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div> <div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor">#ifndef LWIP_MEM_ALIGN</span></div> <div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaa8e8724eb1c220cbbb90de9e175ce1dc"> 236</a></span> <span class="preprocessor">#define LWIP_MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNMENT-1)))</span></div> <div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div> <div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  </div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor">#ifndef PACK_STRUCT_BEGIN</span></div> <div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga73199061891adf1b912d20835c7d5e96"> 249</a></span> <span class="preprocessor">#define PACK_STRUCT_BEGIN</span></div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="preprocessor">#endif </span><span class="comment">/* PACK_STRUCT_BEGIN */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  </div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="preprocessor">#ifndef PACK_STRUCT_END</span></div> <div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga465fef70f294e21cbf4ea51fc342f20e"> 258</a></span> <span class="preprocessor">#define PACK_STRUCT_END</span></div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="preprocessor">#endif </span><span class="comment">/* PACK_STRUCT_END */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  </div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="preprocessor">#ifndef PACK_STRUCT_STRUCT</span></div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="preprocessor">#if defined(__GNUC__) || defined(__clang__)</span></div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="preprocessor">#define PACK_STRUCT_STRUCT __attribute__((packed))</span></div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga33623da05bb55497534c3dc26ebebeb2"> 270</a></span> <span class="preprocessor">#define PACK_STRUCT_STRUCT</span></div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="preprocessor">#endif </span><span class="comment">/* PACK_STRUCT_STRUCT */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  </div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor">#ifndef PACK_STRUCT_FIELD</span></div> <div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaab0b988124e37a978d9a88e7c1c778e0"> 280</a></span> <span class="preprocessor">#define PACK_STRUCT_FIELD(x) x</span></div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="preprocessor">#endif </span><span class="comment">/* PACK_STRUCT_FIELD */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div> <div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="preprocessor">#ifndef PACK_STRUCT_FLD_8</span></div> <div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gaa8f75e4117374c2d09fbda5566e40b62"> 289</a></span> <span class="preprocessor">#define PACK_STRUCT_FLD_8(x) PACK_STRUCT_FIELD(x)</span></div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor">#endif </span><span class="comment">/* PACK_STRUCT_FLD_8 */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  </div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="preprocessor">#ifndef PACK_STRUCT_FLD_S</span></div> <div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#gacc89e224363eb0ebca24b64d925c3cb7"> 298</a></span> <span class="preprocessor">#define PACK_STRUCT_FLD_S(x) PACK_STRUCT_FIELD(x)</span></div> <div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="preprocessor">#endif </span><span class="comment">/* PACK_STRUCT_FLD_S */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  </div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="preprocessor">#ifdef __DOXYGEN__</span></div> <div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="preprocessor">#define PACK_STRUCT_USE_INCLUDES</span></div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  </div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="preprocessor">#ifndef LWIP_UNUSED_ARG</span></div> <div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="../../de/d8c/group__compiler__abstraction.html#ga70624a5deb8b9199406372a7f3603ecf"> 315</a></span> <span class="preprocessor">#define LWIP_UNUSED_ARG(x) (void)x</span></div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="preprocessor">#endif </span><span class="comment">/* LWIP_UNUSED_ARG */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div> <div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00323"></a><span class="lineno"> 323</span> }</div> <div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  </div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="preprocessor">#endif </span><span class="comment">/* LWIP_HDR_ARCH_H */</span><span class="preprocessor"></span></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <div class="ttc" id="agroup__compiler__abstraction_html_gacf46f4df0ebab84edebcb69967fdf86b"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#gacf46f4df0ebab84edebcb69967fdf86b">s16_t</a></div><div class="ttdeci">int16_t s16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00125">arch.h:125</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga77570ac4fcab86864fa1916e55676da2"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a></div><div class="ttdeci">uint16_t u16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00124">arch.h:124</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a3542c6a0490e65fc4fc407273126e64f"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a3542c6a0490e65fc4fc407273126e64f">int16_t</a></div><div class="ttdeci">__int16_t int16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00103">types.h:103</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga4c14294869aceba3ef9d4c0c302d0f33"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a></div><div class="ttdeci">uint32_t u32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00126">arch.h:126</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html">types.h</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a281b4b5562236420969a830503b0ba19"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a></div><div class="ttdeci">__uint16_t uint16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00045">types.h:45</a></div></div> <div class="ttc" id="akpanic_8h_html"><div class="ttname"><a href="../../d3/d24/kpanic_8h.html">kpanic.h</a></div></div> <div class="ttc" id="akprintf_8h_html"><div class="ttname"><a href="../../da/d28/kprintf_8h.html">kprintf.h</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga10f9a3d7baef58ccc23228c3bd29c1fb"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga10f9a3d7baef58ccc23228c3bd29c1fb">s32_t</a></div><div class="ttdeci">int32_t s32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00127">arch.h:127</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a06ffba8acf5d133104191f183e67ac8c"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a06ffba8acf5d133104191f183e67ac8c">int8_t</a></div><div class="ttdeci">__int8_t int8_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00098">types.h:98</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga4caecabca98b43919dd11be1c0d4cd8e"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a></div><div class="ttdeci">uint8_t u8_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00122">arch.h:122</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a0238af00180b6d9278fa1c6aa790fdf4"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a></div><div class="ttdeci">__uint32_t uint32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00046">types.h:46</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a6f6221103820f185abcc62b874665a93"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a6f6221103820f185abcc62b874665a93">int32_t</a></div><div class="ttdeci">__int32_t int32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00108">types.h:108</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga9cd1d7891fe315de1201e2c6e45f4f57"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga9cd1d7891fe315de1201e2c6e45f4f57">s8_t</a></div><div class="ttdeci">int8_t s8_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00123">arch.h:123</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_gaf019cbb71af10dcfda7758b21e655307"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#gaf019cbb71af10dcfda7758b21e655307">mem_ptr_t</a></div><div class="ttdeci">uintptr_t mem_ptr_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00128">arch.h:128</a></div></div> <div class="ttc" id="acc_8h_html"><div class="ttname"><a href="../../dc/df0/cc_8h.html">cc.h</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a09674b9e56fd7a93a2169aa9210deec7"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a09674b9e56fd7a93a2169aa9210deec7">uintptr_t</a></div><div class="ttdeci">uint32_t uintptr_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00136">types.h:136</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a2aff71146ab4942b2b38860c749c4074"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a2aff71146ab4942b2b38860c749c4074">uint8_t</a></div><div class="ttdeci">__uint8_t uint8_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00044">types.h:44</a></div></div> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_2fa1ed3146d6c2b96c5cfe4341985326.html">net</a></li><li class="navelem"><a class="el" href="../../d2/d2d/arch_8h.html">arch.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>