cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

isr_8h_source.html (12049B)


      1<!-- HTML header for doxygen 1.8.14-->
      2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3<html xmlns="http://www.w3.org/1999/xhtml">
      4<head>
      5<meta http-equiv="cache-control" content="max-age=86400"/>
      6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8<meta name="generator" content="Doxygen 1.8.20"/>
      9<meta name="viewport" content="width=device-width, initial-scale=1"/>
     10<title>GBDK 2020 Docs: gb/isr.h Source File</title>
     11<link href="tabs.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="jquery.js"></script>
     13<script type="text/javascript" src="dynsections.js"></script>
     14<link href="navtree.css" rel="stylesheet" type="text/css"/>
     15<script type="text/javascript" src="resize.js"></script>
     16<script type="text/javascript" src="navtreedata.js"></script>
     17<script type="text/javascript" src="navtree.js"></script>
     18<link href="search/search.css" rel="stylesheet" type="text/css"/>
     19<script type="text/javascript" src="search/searchdata.js"></script>
     20<script type="text/javascript" src="search/search.js"></script>
     21<link href="doxygen.css" rel="stylesheet" type="text/css" />
     22<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
     23</head>
     24<body>
     25<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     26<div id="titlearea">
     27<table cellspacing="0" cellpadding="0">
     28 <tbody>
     29 <tr style="height: 56px;">
     30  <td id="projectalign" style="padding-left: 0.5em;">
     31   <div id="projectname">GBDK 2020 Docs
     32   &#160;<span id="projectnumber">4.0.6</span>
     33   </div>
     34   <div id="projectbrief">API Documentation for GBDK 2020</div>
     35  </td>
     36 </tr>
     37 </tbody>
     38</table>
     39</div>
     40<!-- end header part -->
     41<!-- Generated by Doxygen 1.8.20 -->
     42<script type="text/javascript">
     43/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     44var searchBox = new SearchBox("searchBox", "search",false,'Search');
     45/* @license-end */
     46</script>
     47<script type="text/javascript" src="menudata.js"></script>
     48<script type="text/javascript" src="menu.js"></script>
     49<script type="text/javascript">
     50/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     51$(function() {
     52  initMenu('',true,false,'search.php','Search');
     53  $(document).ready(function() { init_search(); });
     54});
     55/* @license-end */</script>
     56<div id="main-nav"></div>
     57</div><!-- top -->
     58<div id="side-nav" class="ui-resizable side-nav-resizable">
     59  <div id="nav-tree">
     60    <div id="nav-tree-contents">
     61      <div id="nav-sync" class="sync"></div>
     62    </div>
     63  </div>
     64  <div id="splitbar" style="-moz-user-select:none;" 
     65       class="ui-resizable-handle">
     66  </div>
     67</div>
     68<script type="text/javascript">
     69/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     70$(document).ready(function(){initNavTree('isr_8h_source.html',''); initResizable(); });
     71/* @license-end */
     72</script>
     73<div id="doc-content">
     74<!-- window showing the filter options -->
     75<div id="MSearchSelectWindow"
     76     onmouseover="return searchBox.OnSearchSelectShow()"
     77     onmouseout="return searchBox.OnSearchSelectHide()"
     78     onkeydown="return searchBox.OnSearchSelectKey(event)">
     79</div>
     80
     81<!-- iframe showing the search results (closed by default) -->
     82<div id="MSearchResultsWindow">
     83<iframe src="javascript:void(0)" frameborder="0" 
     84        name="MSearchResults" id="MSearchResults">
     85</iframe>
     86</div>
     87
     88<div class="header">
     89  <div class="headertitle">
     90<div class="title">isr.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="isr_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>&#160; </div>
     94<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef _ISR_H_INCLUDE_</span></div>
     95<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#define _ISR_H_INCLUDE_</span></div>
     96<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
     97<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
     98<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     99<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
    100<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// #define VECTOR_VBL     0x40 // you can not define raw vector for VBlank interrupt</span></div>
    101<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="isr_8h.html#a2cf2cba8468992868fe1f6b6448ffae2">   16</a></span>&#160;<span class="preprocessor">#define VECTOR_STAT    0x48  </span></div>
    102<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="isr_8h.html#a84ca82d76186433c1ec77fde7652b827">   17</a></span>&#160;<span class="preprocessor">#define VECTOR_TIMER   0x50  </span></div>
    103<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="isr_8h.html#a9c51a56a79576c33fcc98579bf7153a1">   18</a></span>&#160;<span class="preprocessor">#define VECTOR_SERIAL  0x58  </span></div>
    104<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="isr_8h.html#ac93f10ff354ca76f4030f64a8496303f">   19</a></span>&#160;<span class="preprocessor">#define VECTOR_JOYPAD  0x60  </span></div>
    105<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structisr__vector__t.html">   21</a></span>&#160;<span class="preprocessor">typedef struct isr_vector_t {</span></div>
    106<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structisr__vector__t.html#a43f6e622239ba42a25d2d9624c0d8f0b">   22</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structisr__vector__t.html#a43f6e622239ba42a25d2d9624c0d8f0b">opcode</a>;</div>
    107<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structisr__vector__t.html#a978f0092183f75d20a0f7de7add24b50">   23</a></span>&#160;    <span class="keywordtype">void</span> * <a class="code" href="structisr__vector__t.html#a978f0092183f75d20a0f7de7add24b50">func</a>;</div>
    108<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="isr_8h.html#a40dca48ca391581d7f67d8697533cf30">   24</a></span>&#160;} <a class="code" href="isr_8h.html#a40dca48ca391581d7f67d8697533cf30">isr_vector_t</a>;</div>
    109<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
    110<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="isr_8h.html#a73769fed9338af86fdb7df35d7b82620">   52</a></span>&#160;<span class="preprocessor">#define ISR_VECTOR(ADDR, FUNC) \</span></div>
    111<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">static const isr_vector_t AT((ADDR)) __ISR_ ## ADDR = {0xc3, (void *)&amp;(FUNC)};</span></div>
    112<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
    113<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structisr__nested__vector__t.html">   55</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structisr__nested__vector__t.html">isr_nested_vector_t</a> {</div>
    114<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structisr__nested__vector__t.html#a097ce850c38d6045af8f419a07a34b66">   56</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structisr__nested__vector__t.html#a097ce850c38d6045af8f419a07a34b66">opcode</a>[2];</div>
    115<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structisr__nested__vector__t.html#a4009f14b9912d9a852873e2019044d0c">   57</a></span>&#160;    <span class="keywordtype">void</span> * <a class="code" href="structisr__nested__vector__t.html#a4009f14b9912d9a852873e2019044d0c">func</a>;</div>
    116<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="isr_8h.html#a99e64ac886740db0eb63d8ed0235b5c7">   58</a></span>&#160;} <a class="code" href="isr_8h.html#a99e64ac886740db0eb63d8ed0235b5c7">isr_nested_vector_t</a>;</div>
    117<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
    118<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="isr_8h.html#a78f9ef588aaf221023e48899898d566b">   70</a></span>&#160;<span class="preprocessor">#define ISR_NESTED_VECTOR(ADDR, FUNC) \</span></div>
    119<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">static const isr_nested_vector_t AT((ADDR)) __ISR_ ## ADDR = {{0xfb, 0xc3}, (void *)&amp;(FUNC)};</span></div>
    120<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
    121<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
    122<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#endif // _ISR_H_INCLUDE_</span></div>
    123</div><!-- fragment --></div><!-- contents -->
    124</div><!-- doc-content -->
    125<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
    126<div class="ttc" id="aisr_8h_html_a99e64ac886740db0eb63d8ed0235b5c7"><div class="ttname"><a href="isr_8h.html#a99e64ac886740db0eb63d8ed0235b5c7">isr_nested_vector_t</a></div><div class="ttdeci">struct isr_nested_vector_t isr_nested_vector_t</div></div>
    127<div class="ttc" id="astructisr__nested__vector__t_html_a097ce850c38d6045af8f419a07a34b66"><div class="ttname"><a href="structisr__nested__vector__t.html#a097ce850c38d6045af8f419a07a34b66">isr_nested_vector_t::opcode</a></div><div class="ttdeci">uint8_t opcode[2]</div><div class="ttdef"><b>Definition:</b> isr.h:56</div></div>
    128<div class="ttc" id="astructisr__vector__t_html_a978f0092183f75d20a0f7de7add24b50"><div class="ttname"><a href="structisr__vector__t.html#a978f0092183f75d20a0f7de7add24b50">isr_vector_t::func</a></div><div class="ttdeci">void * func</div><div class="ttdef"><b>Definition:</b> isr.h:23</div></div>
    129<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
    130<div class="ttc" id="astructisr__nested__vector__t_html_a4009f14b9912d9a852873e2019044d0c"><div class="ttname"><a href="structisr__nested__vector__t.html#a4009f14b9912d9a852873e2019044d0c">isr_nested_vector_t::func</a></div><div class="ttdeci">void * func</div><div class="ttdef"><b>Definition:</b> isr.h:57</div></div>
    131<div class="ttc" id="aisr_8h_html_a40dca48ca391581d7f67d8697533cf30"><div class="ttname"><a href="isr_8h.html#a40dca48ca391581d7f67d8697533cf30">isr_vector_t</a></div><div class="ttdeci">struct isr_vector_t isr_vector_t</div></div>
    132<div class="ttc" id="astructisr__nested__vector__t_html"><div class="ttname"><a href="structisr__nested__vector__t.html">isr_nested_vector_t</a></div><div class="ttdef"><b>Definition:</b> isr.h:55</div></div>
    133<div class="ttc" id="astructisr__vector__t_html_a43f6e622239ba42a25d2d9624c0d8f0b"><div class="ttname"><a href="structisr__vector__t.html#a43f6e622239ba42a25d2d9624c0d8f0b">isr_vector_t::opcode</a></div><div class="ttdeci">uint8_t opcode</div><div class="ttdef"><b>Definition:</b> isr.h:22</div></div>
    134<!-- HTML footer for doxygen 1.8.14-->
    135<!-- start footer part -->
    136<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    137</div>
    138</body>
    139</html>