You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
14 KiB
HTML

<!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.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SAME54P20A Test Project: /storage/Shared/Documents/Projects/ePenguin/ePenguin-Software-Framework/arch/arm/SAME54/SAME54A/mcu/inc/instance/ac.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>
<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">SAME54P20A Test Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<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&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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_ea9599923402ca8ab47fc3e495999dea.html">arch</a></li><li class="navelem"><a class="el" href="dir_9e929c73feaf15d3695ce4c76b483065.html">arm</a></li><li class="navelem"><a class="el" href="dir_58955c0f35a9c3d48181d2be53994c7b.html">SAME54</a></li><li class="navelem"><a class="el" href="dir_09e97e512ca7d4e6cd359f1c5497eeba.html">SAME54A</a></li><li class="navelem"><a class="el" href="dir_4b38d63e5c584a4d6c9001c789e1829f.html">mcu</a></li><li class="navelem"><a class="el" href="dir_d4fc57b996dc082ef023092a5b7d90fc.html">inc</a></li><li class="navelem"><a class="el" href="dir_92b117bae75cf16a05ca7611db29e9c7.html">instance</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ac.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="instance_2ac_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>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#ifndef _SAME54_AC_INSTANCE_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#define _SAME54_AC_INSTANCE_</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">/* ========== Register definition for AC peripheral ========== */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#define REG_AC_CTRLA (0x42002000) </span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#define REG_AC_CTRLB (0x42002001) </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#define REG_AC_EVCTRL (0x42002002) </span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#define REG_AC_INTENCLR (0x42002004) </span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#define REG_AC_INTENSET (0x42002005) </span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define REG_AC_INTFLAG (0x42002006) </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#define REG_AC_STATUSA (0x42002007) </span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#define REG_AC_STATUSB (0x42002008) </span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#define REG_AC_DBGCTRL (0x42002009) </span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#define REG_AC_WINCTRL (0x4200200A) </span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#define REG_AC_SCALER0 (0x4200200C) </span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">#define REG_AC_SCALER1 (0x4200200D) </span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#define REG_AC_COMPCTRL0 (0x42002010) </span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#define REG_AC_COMPCTRL1 (0x42002014) </span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#define REG_AC_SYNCBUSY (0x42002020) </span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#define REG_AC_CALIB (0x42002024) </span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#ac2d70a7b269d13bd4fbb18e97aaf428e"> 52</a></span>&#160;<span class="preprocessor">#define REG_AC_CTRLA (*(RwReg8 *)0x42002000UL) </span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a01c407bbf83eddf240c39ba5250a3faa"> 53</a></span>&#160;<span class="preprocessor">#define REG_AC_CTRLB (*(WoReg8 *)0x42002001UL) </span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#ae376e2e9c9594f72661e430c1de07632"> 54</a></span>&#160;<span class="preprocessor">#define REG_AC_EVCTRL (*(RwReg16*)0x42002002UL) </span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#afbd77d80880a140fdc8537843c024c29"> 55</a></span>&#160;<span class="preprocessor">#define REG_AC_INTENCLR (*(RwReg8 *)0x42002004UL) </span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a79c72d9a86d51ce43314860636be2cae"> 56</a></span>&#160;<span class="preprocessor">#define REG_AC_INTENSET (*(RwReg8 *)0x42002005UL) </span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a3082c92462029056dbc4c34162630cdb"> 57</a></span>&#160;<span class="preprocessor">#define REG_AC_INTFLAG (*(RwReg8 *)0x42002006UL) </span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a7cc95dd45aaee9e06788b659771d6826"> 58</a></span>&#160;<span class="preprocessor">#define REG_AC_STATUSA (*(RoReg8 *)0x42002007UL) </span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#ae99baf5afb214e482cc5c54f634ef735"> 59</a></span>&#160;<span class="preprocessor">#define REG_AC_STATUSB (*(RoReg8 *)0x42002008UL) </span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#af5e23d90390c2d94915b7f03fa9c4a4b"> 60</a></span>&#160;<span class="preprocessor">#define REG_AC_DBGCTRL (*(RwReg8 *)0x42002009UL) </span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a7789e6da1808eb3e9c3425f3b70d8bfe"> 61</a></span>&#160;<span class="preprocessor">#define REG_AC_WINCTRL (*(RwReg8 *)0x4200200AUL) </span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#ae69e00cb3157c5c5eafa5857a330f58b"> 62</a></span>&#160;<span class="preprocessor">#define REG_AC_SCALER0 (*(RwReg8 *)0x4200200CUL) </span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a9507327b6ee356ec29ac66638c73c1ad"> 63</a></span>&#160;<span class="preprocessor">#define REG_AC_SCALER1 (*(RwReg8 *)0x4200200DUL) </span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a6f21ce4d532d1b9ceeecb448ca236aff"> 64</a></span>&#160;<span class="preprocessor">#define REG_AC_COMPCTRL0 (*(RwReg *)0x42002010UL) </span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#aba8f4a7c1ead5330f1a6b06cdb5577cd"> 65</a></span>&#160;<span class="preprocessor">#define REG_AC_COMPCTRL1 (*(RwReg *)0x42002014UL) </span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#afbd597324156b0056db08e6bb5d2630e"> 66</a></span>&#160;<span class="preprocessor">#define REG_AC_SYNCBUSY (*(RoReg *)0x42002020UL) </span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="instance_2ac_8h.html#a45707e179457e103c0a95c6493967d78"> 67</a></span>&#160;<span class="preprocessor">#define REG_AC_CALIB (*(RwReg16*)0x42002024UL) </span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="comment">/* ========== Instance parameters for AC peripheral ========== */</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="preprocessor">#define AC_COMPCTRL_MUXNEG_OPAMP 7 // OPAMP selection for MUXNEG</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="preprocessor">#define AC_FUSES_BIAS1 // PAIR1 Bias Calibration</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="preprocessor">#define AC_GCLK_ID 32 // Index of Generic Clock</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="preprocessor">#define AC_IMPLEMENTS_VDBLR 0 // VDoubler implemented ?</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor">#define AC_NUM_CMP 2 // Number of comparators</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor">#define AC_PAIRS 1 // Number of pairs of comparators</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor">#define AC_SPEED_LEVELS 2 // Number of speed values</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _SAME54_AC_INSTANCE_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>