?? sdhal.c__.htm
字號:
<html><head><title>SD卡讀寫模塊.rar - sdhal.c</title></head><body>
<script language="JavaScript">
function openwin(url)
{
window.open(url, 'ProgramSourceCode');
}
</script>
<textarea cols=105 rows=17>文件頭:
/****************************************Copyright (c)**************************************************
** Guangzhou ZLG-MCU Development Co.,LTD.
** graduate school
** http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name: sdhal.c
** Last modified Date: 2005-1-6
** Last Version: V1.0
** Descriptions: sd 卡驅動軟件包: 硬件抽象層 ---- SPI操作函數
** Soft Packet of SD Card Driver: hard abstrast layer ---- function of SPI operation
**
**------------------------------------------------------------------------------------------------------
** Created by: Ming Yuan Zheng
** Created date: 2005-1-6
** Version: V1.0
** Descriptions: The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by: </textarea><BR>
<table width=756 border=0>
<tr><td width=1 bgcolor=#B0B0B0></td><td>
<script type="text/javascript"><!--
google_ad_client = "pub-8055710228382273";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "333333";
google_color_url = "666666";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td width=15 bgcolor=#E4E0D8></td></tr></table>
<textarea cols=105 rows=12>文件尾:
rely 0: not insert entirely
********************************************************************************************************************/
INT8U SD_ChkCard(void)
{
if (SD_INSERT_STATUS() != 0)
return 0; /* 未完全插入 not insert entirely */
else
return 1; /* 完全插入 insert entirely */
}
/*******************************************************************************************************************
** 函數名稱: void SD_ChkCardWP() Name: void SD_ChkCardWP()
** 功能描述: 檢測卡寫保護 Function: check weather card is write protect
** 輸 入: 無 Input: NULL
** 輸 出: 1: 卡已寫保護 0: 卡未寫保護 Output: 1: insert write protect 0: not write protect
********************************************************************************************************************/
INT8U SD_ChkCardWP(void)
{
if (SD_WP_STATUS() != 0)
return 1; /* 卡寫保護 */
else
return 0; /* 卡未寫保護 */
}
</textarea><BR>
<a href=http://www.pudn.com><small><font color=#A0A0A0>程序員聯合開發網</font></small></a> <a href="/downloads28\sourcecode\embed/detail90300.html"><small><font color=#A0A0A0>返回SD卡讀寫模塊.rar</font></small></a>
<a href="javascript:openwin('/view_src.asp?id=90300&f=SD卡讀寫模塊/SD/sdhal.c');"><small><font color=#A00000>在線閱讀整個文件</font></small></a>
</body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -