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.

150 lines
17 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/tcc3.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">tcc3.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="tcc3_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_TCC3_INSTANCE_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#define _SAME54_TCC3_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 TCC3 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_TCC3_CTRLA (0x42001000) </span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#define REG_TCC3_CTRLBCLR (0x42001004) </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#define REG_TCC3_CTRLBSET (0x42001005) </span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#define REG_TCC3_SYNCBUSY (0x42001008) </span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#define REG_TCC3_FCTRLA (0x4200100C) </span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define REG_TCC3_FCTRLB (0x42001010) </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#define REG_TCC3_DRVCTRL (0x42001018) </span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#define REG_TCC3_DBGCTRL (0x4200101E) </span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#define REG_TCC3_EVCTRL (0x42001020) </span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#define REG_TCC3_INTENCLR (0x42001024) </span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#define REG_TCC3_INTENSET (0x42001028) </span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">#define REG_TCC3_INTFLAG (0x4200102C) </span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#define REG_TCC3_STATUS (0x42001030) </span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#define REG_TCC3_COUNT (0x42001034) </span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#define REG_TCC3_WAVE (0x4200103C) </span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#define REG_TCC3_PER (0x42001040) </span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#define REG_TCC3_CC0 (0x42001044) </span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#define REG_TCC3_CC1 (0x42001048) </span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#define REG_TCC3_PERBUF (0x4200106C) </span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#define REG_TCC3_CCBUF0 (0x42001070) </span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#define REG_TCC3_CCBUF1 (0x42001074) </span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="tcc3_8h.html#af1ca4385ad4c7d48120d6a3672b10e44"> 57</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CTRLA (*(RwReg *)0x42001000UL) </span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a9a94848e0f5e58c2c3595a4b226f1502"> 58</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CTRLBCLR (*(RwReg8 *)0x42001004UL) </span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="tcc3_8h.html#ae94003f46478130b37875f400ed35e42"> 59</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CTRLBSET (*(RwReg8 *)0x42001005UL) </span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="tcc3_8h.html#aa420f341675b706f98f39684b2e2fc30"> 60</a></span>&#160;<span class="preprocessor">#define REG_TCC3_SYNCBUSY (*(RoReg *)0x42001008UL) </span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="tcc3_8h.html#aba55830d33e7d26e8f8329a822f10016"> 61</a></span>&#160;<span class="preprocessor">#define REG_TCC3_FCTRLA (*(RwReg *)0x4200100CUL) </span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="tcc3_8h.html#af529d8bc6a02aefefde1fbd32d41f003"> 62</a></span>&#160;<span class="preprocessor">#define REG_TCC3_FCTRLB (*(RwReg *)0x42001010UL) </span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a66ee4475076b1de64b92f6024bccb17e"> 63</a></span>&#160;<span class="preprocessor">#define REG_TCC3_DRVCTRL (*(RwReg *)0x42001018UL) </span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a18f407e1e075c5e2e5e5cdc1e233809b"> 64</a></span>&#160;<span class="preprocessor">#define REG_TCC3_DBGCTRL (*(RwReg8 *)0x4200101EUL) </span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="tcc3_8h.html#adabd1abd04aa2fa9a667db52a2e903ab"> 65</a></span>&#160;<span class="preprocessor">#define REG_TCC3_EVCTRL (*(RwReg *)0x42001020UL) </span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="tcc3_8h.html#aded2e2128c839e92bea90ace9d420adf"> 66</a></span>&#160;<span class="preprocessor">#define REG_TCC3_INTENCLR (*(RwReg *)0x42001024UL) </span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a220b23aad98425dfe8c9a8c289298c60"> 67</a></span>&#160;<span class="preprocessor">#define REG_TCC3_INTENSET (*(RwReg *)0x42001028UL) </span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a8befba4125fb0a50ab4dca96870d43c7"> 68</a></span>&#160;<span class="preprocessor">#define REG_TCC3_INTFLAG (*(RwReg *)0x4200102CUL) </span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a9885031e775f417988f1c7e2aac56fd7"> 69</a></span>&#160;<span class="preprocessor">#define REG_TCC3_STATUS (*(RwReg *)0x42001030UL) </span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a5c8e0e0b762f76fe2db909dc3e125322"> 70</a></span>&#160;<span class="preprocessor">#define REG_TCC3_COUNT (*(RwReg *)0x42001034UL) </span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a6522ea26dd392edf1410a6fadba99f0e"> 71</a></span>&#160;<span class="preprocessor">#define REG_TCC3_WAVE (*(RwReg *)0x4200103CUL) </span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a16d929abff33a5d11015a29c13873514"> 72</a></span>&#160;<span class="preprocessor">#define REG_TCC3_PER (*(RwReg *)0x42001040UL) </span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a7c9e85c5fc52aec9e18d6625ef3bd592"> 73</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CC0 (*(RwReg *)0x42001044UL) </span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="tcc3_8h.html#af5b22be60b01d36fb38ebefc16249aaa"> 74</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CC1 (*(RwReg *)0x42001048UL) </span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="tcc3_8h.html#af966a905c278a0e7f198ac52c771d0f0"> 75</a></span>&#160;<span class="preprocessor">#define REG_TCC3_PERBUF (*(RwReg *)0x4200106CUL) </span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a6c8f95dc3a9c3ef522707471071215a6"> 76</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CCBUF0 (*(RwReg *)0x42001070UL) </span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="tcc3_8h.html#a7345a5145a0a5e8c7beb447ad5732fef"> 77</a></span>&#160;<span class="preprocessor">#define REG_TCC3_CCBUF1 (*(RwReg *)0x42001074UL) </span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</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="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="comment">/* ========== Instance parameters for TCC3 peripheral ========== */</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="preprocessor">#define TCC3_CC_NUM 2 // Number of Compare/Capture units</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="preprocessor">#define TCC3_DITHERING 0 // Dithering feature implemented</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="preprocessor">#define TCC3_DMAC_ID_MC_0 39</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="preprocessor">#define TCC3_DMAC_ID_MC_1 40</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="preprocessor">#define TCC3_DMAC_ID_MC_LSB 39</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="preprocessor">#define TCC3_DMAC_ID_MC_MSB 40</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="preprocessor">#define TCC3_DMAC_ID_MC_SIZE 2</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="preprocessor">#define TCC3_DMAC_ID_OVF 38 // DMA overflow/underflow/retrigger trigger</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="preprocessor">#define TCC3_DTI 0 // Dead-Time-Insertion feature implemented</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="preprocessor">#define TCC3_EXT 0 // Coding of implemented extended features</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="preprocessor">#define TCC3_GCLK_ID 29 // Index of Generic Clock</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<span class="preprocessor">#define TCC3_MASTER_SLAVE_MODE 0 // TCC type 0 : NA, 1 : Master, 2 : Slave</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="preprocessor">#define TCC3_OTMX 0 // Output Matrix feature implemented</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="preprocessor">#define TCC3_OW_NUM 2 // Number of Output Waveforms</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="preprocessor">#define TCC3_PG 0 // Pattern Generation feature implemented</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="preprocessor">#define TCC3_SIZE 16 </span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor">#define TCC3_SWAP 0 // DTI outputs swap feature implemented</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _SAME54_TCC3_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>