⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdconfig.h__.htm

📁 周立功的SD卡源代码,请大家参考,希望对大家有所帮助,
💻 HTM
字号:
<html><head><title>SD卡读写模块.rar - sdconfig.h</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:			sdconfig.h

** Last modified Date:	2005-1-6

** Last Version:		V1.0

** Descriptions:		sd 卡驱动软件包: 配置文件

**						Soft Packet of SD Card Driver: configuration header file

**

**------------------------------------------------------------------------------------------------------

** Created by:			Ming Yuan Zheng

** Created date:		2005-1-6

** Version:				V1.0

** Descriptions:		The original version

**

**------------------------------------------------------------------------------------------------------

** Modified by:			

** Modified date:		

** Version:				
</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>文件尾:
10) + (0x01 << 12);

																

/* 电源控制引脚 */

#define  SD_POWER				(0x01 << 9)	

#define  SD_POWER_GPIO()		PINSEL0 &= ~(0x03 << 18)		/* 设置 POWER 口为GPIO口 */

#define  SD_POWER_OUT()			IODIR |= SD_POWER				/* 设置 POWER 口为输出口 */

#define  SD_POWER_OFF()			IOSET = SD_POWER				/* 置 POWER 为高电平 */

#define  SD_POWER_ON()			IOCLR = SD_POWER				/* 置 POWER 为低电平 */



/* 卡完全插入卡座检测引脚 */

#define  SD_INSERT				(0x01 << 10)		

#define  SD_INSERT_GPIO()		PINSEL0 &= ~(0x03 << 20)		/* 设置 INSERT 口为GPIO口 */	

#define  SD_INSERT_IN()			IODIR &= ~SD_INSERT				/* 设置 INSERT 口为输出口 */	

#define  SD_INSERT_STATUS()  	(IOPIN & SD_INSERT)				/* 读取 INSERT 口的状态 */



/* 卡写保护检测引脚 */

#define  SD_WP					(0x01 << 11)		

#define  SD_WP_GPIO()			PINSEL0 &= ~(0x03 << 22)		/* 设置 INSERT 口为GPIO口 */	

#define  SD_WP_IN()				IODIR &= ~SD_WP					/* 设置 INSERT 口为输出口 */	

#define  SD_WP_STATUS()  		(IOPIN & SD_WP)					/* 读取 INSERT 口的状态 */



</textarea><BR>
<a href=http://www.pudn.com><small><font color=#A0A0A0>程序员联合开发网</font></small></a>&nbsp;&nbsp;<a href="/downloads28\sourcecode\embed/detail90300.html"><small><font color=#A0A0A0>返回SD卡读写模块.rar</font></small></a>
&nbsp;&nbsp;<a href="javascript:openwin('/view_src.asp?id=90300&f=SD卡读写模块/sdconfig.h');"><small><font color=#A00000>在线阅读整个文件</font></small></a>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -