?? board_8c.html
字號(hào):
00064 00065 ConsoleWrite (<span class="stringliteral">"\r\r\rBoard: Console is up.\r"</span>);00066 00067 00068 TMOD = 1;00069 00070 00071 RCAP2H = 143; <span class="comment">/* Set timer2 for 128 interrupts in second */</span>00072 RCAP2L = 89;00073 TH2 = 143;00074 TL2 = 89;00075 T2CON = 0;00076 T2MOD = 0;00077 00078 TR2 = 1; <span class="comment">/* Start timer2 */</span>00079 <span class="comment">// ET2 = 1; /* Enable timer2 interrupts */</span>00080 00081 <span class="comment">// P2 = 0xEF;</span>00082 <span class="comment">//P3 = 0xFF;</span>00083 00084 <a class="code" href="board_8h.html#a40">InitiateDelay</a>(0); <span class="comment">/* Initialize the Delay System */</span>00085 00086 ConsoleWrite (<span class="stringliteral">"Init: Board; supports: AT89C51RD2, MMC, VS10xx, RS232\r"</span>);00087 00088 00089 <span class="comment">// EA = 1; /* Global enable for interrupts */</span>00090 }</div></pre> </td> </tr></table><a class="anchor" name="a2" doxytag="board.c::SPI8Clocks" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void SPI8Clocks </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned char </td> <td class="mdname1" valign="top" nowrap> <em>nClocks</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Send nClocks x 8 clock transitions with MOSI=1 (0xff). <p><p>Definition at line <a class="el" href="board_8c-source.html#l00026">26</a> of file <a class="el" href="board_8c-source.html">board.c</a>.<p>References <a class="el" href="board_8h-source.html#l00238">SPIPutCharWithoutWaiting</a>, and <a class="el" href="board_8h-source.html#l00232">SPIWait</a>.<p>Referenced by <a class="el" href="mmc_8c-source.html#l00019">MmcCommand()</a>, <a class="el" href="mmc_8c-source.html#l00105">MmcWaitForData()</a>, <a class="el" href="mmc_8c-source.html#l00463">ReadPhysicalSector()</a>, <a class="el" href="mmc_8c-source.html#l00217">RebootMMC()</a>, and <a class="el" href="mmc_8c-source.html#l00484">WritePhysicalSector()</a>.<p><pre class="fragment"><div>00026 {00027 <span class="keywordflow">while</span> (nClocks--){00028 <a class="code" href="board_8h.html#a45">SPIPutCharWithoutWaiting</a>(0xff);00029 <a class="code" href="board_8h.html#a43">SPIWait</a>();00030 }00031 }</div></pre> </td> </tr></table><a class="anchor" name="a1" doxytag="board.c::SPIGetChar" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned char SPIGetChar </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Send 8 ones to SPI bus and receive the result byte. <p><p>Definition at line <a class="el" href="board_8c-source.html#l00018">18</a> of file <a class="el" href="board_8c-source.html">board.c</a>.<p>References <a class="el" href="board_8h-source.html#l00241">SPI_RESULT_BYTE</a>, <a class="el" href="board_8h-source.html#l00238">SPIPutCharWithoutWaiting</a>, and <a class="el" href="board_8h-source.html#l00232">SPIWait</a>.<p>Referenced by <a class="el" href="mmc_8c-source.html#l00397">ConsoleDecipherMMCResponse()</a>, <a class="el" href="mmc_8c-source.html#l00019">MmcCommand()</a>, <a class="el" href="mmc_8c-source.html#l00159">MmcGetData()</a>, <a class="el" href="mmc_8c-source.html#l00105">MmcWaitForData()</a>, and <a class="el" href="mmc_8c-source.html#l00484">WritePhysicalSector()</a>.<p><pre class="fragment"><div>00018 {00019 <a class="code" href="board_8h.html#a45">SPIPutCharWithoutWaiting</a>(0xff); <span class="comment">/* send 0xff */</span>00020 <a class="code" href="board_8h.html#a43">SPIWait</a>(); <span class="comment">/* wait for the byte to transfer */</span>00021 <span class="keywordflow">return</span> <a class="code" href="board_8h.html#a46">SPI_RESULT_BYTE</a>; <span class="comment">/* Return the received byte */</span>00022 }</div></pre> </td> </tr></table><hr><h2>Variable Documentation</h2><a class="anchor" name="a0" doxytag="board.c::temp" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> union <a class="el" href="unionTemp.html">Temp</a> <a class="el" href="board_8h.html#a48">temp</a> </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Generic temp variable for non-reentrant main routines. <p><p>Referenced by <a class="el" href="filesys_8c-source.html#l00401">BuildFragmentTable()</a>, <a class="el" href="filesys_8c-source.html#l00806">FatInitGlobals()</a>, <a class="el" href="aviplay_8c-source.html#l00015">GetAVIBlock()</a>, <a class="el" href="mmc_8c-source.html#l00246">InitMMC()</a>, <a class="el" href="player_8c-source.html#l00265">LoadPatch()</a>, <a class="el" href="player_8c-source.html#l00765">main()</a>, <a class="el" href="filesys_8c-source.html#l00610">OpenFile()</a>, <a class="el" href="record_8c-source.html#l00101">Record()</a>, <a class="el" href="vs10xx_8c-source.html#l00178">SendZerosToVS10xx()</a>, <a class="el" href="display_8c-source.html#l00058">UpdateDisplay()</a>, and <a class="el" href="filesys_8c-source.html#l00129">WriteClusterChain()</a>. </td> </tr></table><hr><FONT SIZE="-1">All software copyright 2000-2004 <a href="http://www.vlsi.fi/"> VLSI Solution OY.</a>Redistribution of these software modules are limited to promotional use onlyand only with the VS1011 / VS1002 / VS1003 MP3-Evakit evaluation boards. Free orcommercial use of these software modules in MP3 players is ok if theproduct includes MP3 decoder chip(s) from VLSI. You can request the complete(compilable) package from mp3@vlsi.fi</FONT>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -