sdhal.h

来自「周立功magic2410实验箱源码 第6章Linux高级实验(part1) 」· C头文件 代码 · 共 43 行

H
43
字号
/****************************************Copyright (c)**************************************************
**                               Guangzhou ZHIYUAN electronics Co.,LTD.
**                                     
**                                 http://www.zyinside.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name: 				sdconfig.h
** Last modified Date: 		2006.01.09
** Last Version:			V1.0		
** Description: 			hardware abstract layer header file for s3c2410 SD/MMC
**
**------------------------------------------------------------------------------------------------------
** Created By: 				Ming Yuan Zheng 郑明远
** Created date: 			2006.01.09
** Version: 				V1.0
** Descriptions:			The original version 初始版本
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Description:
**
********************************************************************************************************/

#ifndef __SDHAL_H__ 
#define __SDHAL_H__

/* 给SD/MMC卡供电 power to sd/mmc card */
void SD_Powerup(void);

/* 初始化访问SD卡的硬件初始化 initialize the hardware that access sd card */
extern void SD_HardWareInit(void);

/* 设置SPI的时钟小于400kHZ set the clock of SPI less than 400kHZ */
extern void SD_Clk400k(void);

/* 设置SPI的clock到最大值 set the clock of SPI to maximum */
extern void SD_ClkToMax(void);

#endif

⌨️ 快捷键说明

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