亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? storage_8c-source.html

?? MP3播放器源代碼, VS1003B
?? HTML
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>VLSI Solution Oy Evaluation MP3 Player Source Code Documentation</title><link href="doxygen.css" rel="stylesheet" type="text/css"><img src="vlsi_small.gif" hspace="20" bordercolor="#ffffff"  alt="VLSI Solution Oy"><b>VLSI Solution Oy Evaluation MP3 Player Source Code Documentation</b><p></p></head><body><!-- Generated by Doxygen 1.3.7 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><h1>storage.c</h1><a href="storage_8c.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 00019 <span class="preprocessor">#include "<a class="code" href="storage_8h.html">storage.h</a>"</span>00020 <span class="preprocessor">#include "<a class="code" href="board_8h.html">board.h</a>"</span>00021 <span class="preprocessor">#include "console.h"</span>00022 <span class="preprocessor">#include "<a class="code" href="mmc_8h.html">mmc.h</a>"</span>00023 <span class="preprocessor">#include "<a class="code" href="buffer_8h.html">buffer.h</a>"</span>00024 00025 00026 <span class="comment">//#define MMCDEBUG</span>00027 00028 <a name="l00034"></a><a class="code" href="storage_8c.html#a0">00034</a> xdata <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="mmc_8h.html#a0">storageFlags</a> = 0;00035 00036    00037 <a name="l00043"></a><a class="code" href="storage_8h.html#a0">00043</a> <a class="code" href="board_8h.html#a47">Public</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="storage_8c.html#a1">InitStorage</a>(){00044 00045   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> result;00046 00047   ConsoleWrite (<span class="stringliteral">"Init: Storage v2: supports: MMC,SD,miniSD in SPI mode\r"</span>);00048 00049   result=<a class="code" href="mmc_8c.html#a5">InitMMC</a>();00050   <span class="keywordflow">if</span> (result==0x0e){ <span class="comment">//ok, no support for seek-before-read</span>00051     ConsoleWrite(<span class="stringliteral">"Storage initialized in seek-and-read mode.\r"</span>);00052     <a class="code" href="mmc_8h.html#a0">storageFlags</a> = 1;00053     <span class="keywordflow">return</span> 0;00054   }00055 00056   <span class="keywordflow">if</span> (result){ <span class="comment">//error resulted in MMC startup</span>00057     ConsoleWrite(<span class="stringliteral">"InitStorage: Can't start MMC. "</span>);00058     ConsolePutHex8(result);00059     ConsolePutChar(13);00060     <a class="code" href="mmc_8h.html#a0">storageFlags</a> = 4;00061     <span class="keywordflow">return</span> 1; <span class="comment">//MMC Init Error</span>00062   }00063 00064   ConsoleWrite(<span class="stringliteral">"InitStorage ok.\r"</span>);00065   <a class="code" href="mmc_8h.html#a0">storageFlags</a> = 0;00066   <span class="keywordflow">return</span> 0;00067 00068 }00069 00070 <a name="l00071"></a><a class="code" href="storage_8h.html#a1">00071</a> <a class="code" href="board_8h.html#a47">Public</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="storage_8h.html#a1">PrepareToReadDiskSector</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> sectorN){00072 00073 <span class="preprocessor">#ifdef MMCDEBUG</span>00074 <span class="preprocessor"></span>  ConsoleWrite(<span class="stringliteral">"&lt;strategy:"</span>);00075   ConsolePutUInt(sectorN);00076   ConsoleWrite(<span class="stringliteral">" Flags:"</span>);00077   ConsolePutHex8(<a class="code" href="mmc_8h.html#a0">storageFlags</a>);00078 <span class="preprocessor">#endif</span>00079 <span class="preprocessor"></span>00080   <span class="keywordflow">if</span> (!<a class="code" href="mmc_8h.html#a0">storageFlags</a>){00081     <span class="comment">//Storage device supports seek-before-read</span>00082     <span class="keywordflow">if</span> (<a class="code" href="mmc_8h.html#a2">SeekSector</a>(sectorN)){00083 00084 <span class="preprocessor">#ifdef MMCDEBUG</span>00085 <span class="preprocessor"></span>      ConsoleWrite(<span class="stringliteral">"Seek Error. strategy&gt;"</span>);      00086 <span class="preprocessor">#endif</span>00087 <span class="preprocessor"></span>00088       <span class="keywordflow">return</span> 0x0f; <span class="comment">//seek error code</span>00089     }00090     <a class="code" href="mmc_8h.html#a0">storageFlags</a> |= 0x02; <span class="comment">//flag: a sector is seeked for reading</span>00091 00092 <span class="preprocessor">#ifdef MMCDEBUG</span>00093 <span class="preprocessor"></span>    ConsoleWrite(<span class="stringliteral">"Seeked. strategy&gt;"</span>);00094 <span class="preprocessor">#endif</span>00095 <span class="preprocessor"></span>00096     <span class="keywordflow">return</span> 0; <span class="comment">//ok return</span>00097   }00098 00099 <span class="preprocessor">#ifdef MMCDEBUG</span>00100 <span class="preprocessor"></span>  ConsoleWrite(<span class="stringliteral">"strategy&gt;"</span>);00101 <span class="preprocessor">#endif</span>00102 <span class="preprocessor"></span>00103   <span class="keywordflow">return</span> 0; <span class="comment">//ok return</span>00104 }00105 00106 <a name="l00110"></a><a class="code" href="storage_8h.html#a2">00110</a> <a class="code" href="board_8h.html#a47">Public</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="storage_8h.html#a2">ReadDiskSector</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> sectorN){00111 00112 00113 <span class="preprocessor">#ifdef MMCDEBUG</span>00114 <span class="preprocessor"></span>  ConsoleWrite(<span class="stringliteral">"&lt;read"</span>); <span class="comment">//Read called (strategy, not yet actual read)</span>00115 <span class="preprocessor">#endif</span>00116 <span class="preprocessor"></span>00117   <span class="comment">//if a sector has not already been seeked, seek now.</span>00118   <span class="keywordflow">if</span> (!(<a class="code" href="mmc_8h.html#a0">storageFlags</a>&amp;0x02)){ 00119 <span class="preprocessor">#ifdef MMCDEBUG</span>00120 <span class="preprocessor"></span>    ConsoleWrite(<span class="stringliteral">"F"</span>);00121 <span class="preprocessor">#endif</span>00122 <span class="preprocessor"></span>    <span class="keywordflow">if</span> (<a class="code" href="mmc_8h.html#a2">SeekSector</a>(sectorN)) <span class="keywordflow">return</span> 0x0f; <span class="comment">//seek error</span>00123   }00124   00125   <a class="code" href="mmc_8h.html#a0">storageFlags</a> &amp;= 0xfd; <span class="comment">//clear sector-already-seeked flag</span>00126   <span class="keywordflow">if</span> (<a class="code" href="mmc_8c.html#a9">ReadPhysicalSector</a>()){00127     ConsoleWrite(<span class="stringliteral">"error read&gt;"</span>);00128     <span class="keywordflow">return</span> 0x10; <span class="comment">//read error</span>00129   }00130 00131 <span class="preprocessor">#ifdef MMCDEBUG</span>00132 <span class="preprocessor"></span>    ConsoleWrite(<span class="stringliteral">"read&gt;"</span>);00133 <span class="preprocessor">#endif</span>00134 <span class="preprocessor"></span>00135   <span class="keywordflow">return</span> 0; <span class="comment">/* All OK return */</span>00136 }00137 00138 00139 <a name="l00141"></a><a class="code" href="storage_8h.html#a3">00141</a> <a class="code" href="board_8h.html#a47">Public</a> <span class="keywordtype">void</span> <a class="code" href="storage_8c.html#a4">DumpDiskSector</a>(){00142   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ha,la;00143   00144   ConsoleWrite(<span class="stringliteral">"\rDiskBlock "</span>);00145   ConsolePutUInt(<a class="code" href="buffer_8c.html#a2">sectorAddress</a>.<a class="code" href="unionAddress.html#o0">l</a>);00146   ConsoleWrite(<span class="stringliteral">":\r"</span>);00147   <span class="keywordflow">for</span> (ha=0; ha&lt;32; ha++){00148     ConsolePutHex16 ((ha&lt;&lt;4));00149     ConsoleWrite(<span class="stringliteral">": "</span>);00150     <span class="keywordflow">for</span> (la=0; la&lt;16; la++){00151       ConsolePutHex8(<a class="code" href="buffer_8c.html#a0">diskSect</a>.<a class="code" href="unionDiskBlock.html#o1">raw</a>.<a class="code" href="structDiskBlock_1_1Raw.html#o0">buf</a>[(ha&lt;&lt;4)+la]);00152       ConsolePutChar(<span class="charliteral">' '</span>);00153       <span class="keywordflow">if</span> (la==7){ 00154         ConsolePutChar(<span class="charliteral">' '</span>);00155       }00156     }00157     ConsolePutChar(<span class="charliteral">' '</span>);00158     <span class="keywordflow">for</span> (la=0; la&lt;16; la++){00159       <span class="keywordflow">if</span> ((<a class="code" href="buffer_8c.html#a0">diskSect</a>.<a class="code" href="unionDiskBlock.html#o1">raw</a>.<a class="code" href="structDiskBlock_1_1Raw.html#o0">buf</a>[(ha&lt;&lt;4)+la]) &gt; 30){00160         ConsolePutChar(<a class="code" href="buffer_8c.html#a0">diskSect</a>.<a class="code" href="unionDiskBlock.html#o1">raw</a>.<a class="code" href="structDiskBlock_1_1Raw.html#o0">buf</a>[(ha&lt;&lt;4)+la]);00161       }<span class="keywordflow">else</span>{00162         ConsolePutChar(<span class="charliteral">'.'</span>);00163       }00164     }00165     ConsolePutChar(<span class="charliteral">'\r'</span>);00166   } 00167 }00168 00169 00170 00171 00172 00173 00174 00175 00176 <a name="l00183"></a><a class="code" href="storage_8h.html#a4">00183</a> <a class="code" href="board_8h.html#a47">Public</a> <span class="keywordtype">void</span> <a class="code" href="storage_8h.html#a4">WriteDiskSector</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> sectorN){00184   <a class="code" href="buffer_8c.html#a2">sectorAddress</a>.<a class="code" href="unionAddress.html#o0">l</a> = sectorN;00185   <a class="code" href="buffer_8c.html#a1">dataBufPtr</a> = <a class="code" href="buffer_8c.html#a0">diskSect</a>.<a class="code" href="unionDiskBlock.html#o1">raw</a>.<a class="code" href="structDiskBlock_1_1Raw.html#o0">buf</a>;00186   <a class="code" href="mmc_8c.html#a10">WritePhysicalSector</a>();00187 }</div></pre><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>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本不卡一区二区三区高清视频| 亚洲第一精品在线| 日韩欧美国产综合| 91精品国产欧美一区二区成人| 欧美性受xxxx| 91麻豆精品国产91久久久更新时间| 欧美日韩一区国产| 91精品在线一区二区| 日韩欧美国产综合一区| 久久久99精品免费观看| 日本一区二区成人| 亚洲精品日日夜夜| 日韩av中文在线观看| 久久激情五月激情| 成人黄色av电影| 在线观看亚洲一区| 日韩一区二区精品在线观看| 精品日韩99亚洲| 亚洲欧洲在线观看av| 亚洲一区二区三区四区不卡| 日本不卡1234视频| 国产高清成人在线| 91高清在线观看| 精品久久免费看| 1024成人网| 麻豆国产精品视频| 99久久久无码国产精品| 51午夜精品国产| 国产精品私人自拍| 亚洲福利电影网| 国产九九视频一区二区三区| 色久综合一二码| 精品国产区一区| 亚洲在线视频网站| 国产精品一区二区在线播放| 色婷婷精品久久二区二区蜜臂av | 欧美性色欧美a在线播放| 欧美一区二区三级| 最新日韩av在线| 九九国产精品视频| 欧美亚一区二区| 国产精品黄色在线观看| 奇米色777欧美一区二区| 99国产精品久久| 精品福利一区二区三区| 亚洲一线二线三线久久久| 国产1区2区3区精品美女| 在线观看91av| 亚洲综合激情网| 波多野结衣在线一区| 日韩欧美精品在线视频| 性久久久久久久久久久久| 99久久精品国产毛片| 国产欧美在线观看一区| 免费高清在线视频一区·| 欧美手机在线视频| 亚洲欧美日韩精品久久久久| 成人黄色在线网站| 欧美高清在线一区二区| 国产精品一区一区| 欧美精品一区二区三区视频| 青青草原综合久久大伊人精品优势| 91激情五月电影| 亚洲你懂的在线视频| 91原创在线视频| 专区另类欧美日韩| 99久久精品国产一区| 亚洲欧洲日韩综合一区二区| av一区二区三区在线| 国产精品美女久久久久高潮| 国产不卡视频在线观看| 国产日韩欧美精品综合| 国产精品自拍一区| 国产欧美日韩麻豆91| 国产成人免费视频网站| 国产精品丝袜在线| 成人综合在线视频| 中文字幕一区二区三区蜜月| a级精品国产片在线观看| 国产精品色呦呦| 91在线精品秘密一区二区| 亚洲人成网站精品片在线观看| 99re66热这里只有精品3直播 | 国产婷婷色一区二区三区| 狠狠色丁香婷综合久久| 欧美激情在线免费观看| 99久久国产综合精品女不卡| 亚洲欧美国产77777| 欧美性受极品xxxx喷水| 美女高潮久久久| 国产视频亚洲色图| 色香蕉成人二区免费| 亚洲bt欧美bt精品777| 日韩视频在线观看一区二区| 黑人精品欧美一区二区蜜桃| 国产精品美女一区二区在线观看| 在线精品视频一区二区三四| 日韩专区在线视频| 久久久一区二区| 91色porny在线视频| 三级一区在线视频先锋| 久久九九久精品国产免费直播| 色综合久久久久久久久久久| 免费观看在线综合色| 国产精品久久久久桃色tv| 欧美色图免费看| 国产精品性做久久久久久| 亚洲最新在线观看| 欧美电影免费观看高清完整版在| 成人国产亚洲欧美成人综合网| 夜夜精品浪潮av一区二区三区 | 狠狠色伊人亚洲综合成人| 亚洲日本电影在线| 欧美刺激脚交jootjob| 成人avav在线| 美女视频一区在线观看| 亚洲日穴在线视频| 国产亚洲精品久| 制服丝袜日韩国产| 91网上在线视频| 久99久精品视频免费观看| 亚洲女与黑人做爰| 国产亚洲成av人在线观看导航| 欧美专区在线观看一区| 成人午夜免费电影| 精品在线亚洲视频| 亚洲一区二区欧美激情| 亚洲欧洲日韩av| 日本一区二区免费在线观看视频| 欧美福利视频一区| 色噜噜狠狠一区二区三区果冻| 国产在线播放一区三区四| 亚洲电影一区二区三区| 亚洲欧洲日韩在线| 国产精品久久福利| 久久久久亚洲综合| 精品美女在线播放| 欧美不卡视频一区| 欧美一区二区三区啪啪| 欧美裸体bbwbbwbbw| 欧美在线观看一二区| 一本色道久久加勒比精品| 成人精品小蝌蚪| 国产v日产∨综合v精品视频| 国产真实乱对白精彩久久| 九色porny丨国产精品| 蜜臀久久99精品久久久画质超高清| 亚洲成人综合在线| 午夜视频久久久久久| 亚洲一区二区三区中文字幕在线| 亚洲欧美一区二区三区国产精品| 中文字幕一区二区三区在线观看| 国产精品毛片高清在线完整版| 欧美激情一区在线| 国产精品的网站| 亚洲免费毛片网站| 亚洲影视在线观看| 日韩福利视频网| 精品中文av资源站在线观看| 国产激情偷乱视频一区二区三区| 国产成人高清视频| 91在线视频官网| 欧美性大战久久| 欧美一区二区三区公司| 久久综合狠狠综合| 亚洲欧洲精品一区二区三区不卡| 一区二区在线免费观看| 午夜精品爽啪视频| 久88久久88久久久| 99久久免费视频.com| 欧美调教femdomvk| 日韩欧美一区二区视频| 国产女同性恋一区二区| 日韩理论在线观看| 日日摸夜夜添夜夜添精品视频| 久久国产尿小便嘘嘘尿| 国产69精品一区二区亚洲孕妇| 99久久伊人久久99| 欧美蜜桃一区二区三区| 久久久久久久久免费| 亚洲免费观看高清完整版在线| 天堂精品中文字幕在线| 国产成人精品三级麻豆| 欧美性大战久久| 国产无人区一区二区三区| 亚洲永久免费av| 国产精品99久久久久久宅男| 欧美综合一区二区| 国产日韩亚洲欧美综合| 日韩福利电影在线| 成人黄动漫网站免费app| 欧美一区二区三区色| 亚洲人精品午夜| 精品综合久久久久久8888| 欧美在线制服丝袜| 欧美国产成人在线| 六月丁香婷婷色狠狠久久| 欧美亚一区二区| 亚洲人被黑人高潮完整版| 国产精品99久久久久久似苏梦涵|