📄 sdconfig.h
字号:
/****************************************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: configuration head file for s3c2410
**
**------------------------------------------------------------------------------------------------------
** Created By: Ming Yuan Zheng 郑明远
** Created date: 2006.01.09
** Version: V1.0
** Descriptions: The original version 初始版本
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Description:
**
********************************************************************************************************/
#ifndef __SDCONFIG_H__
#define __SDCONFIG_H__
typedef unsigned char INT8U; /* 无符号8位整型变量 */
typedef signed char INT8; /* 有符号8位整型变量 */
typedef unsigned short INT16U; /* 无符号16位整型变量 */
typedef signed short INT16; /* 有符号16位整型变量 */
typedef unsigned int INT32U; /* 无符号32位整型变量 */
typedef signed int INT32; /* 有符号32位整型变量 */
typedef float FP32; /* 单精度浮点数(32位长度) */
typedef double FP64; /* 双精度浮点数(64位长度) */
/* disable(1) or disable(0) reading or writing by interrupt */
#define SD_INTERRUPT_EN 1 /* 是(1)否(0)使能中断读写SD/MMC卡 */
#define MMC_MMC_CLOCK_HIGH 20000000 /* SD/MMC卡最高读写速度20MHz */
/* define the block length of sd/mmc card */
#define SD_BLOCKSIZE 512 /* SD卡/MMC卡块的长度 */
#define SD_BLOCKSIZE_NBITS 9 /* 2 ^ 9 = 512*/
/* define the interrupt of card inserting */
#define IRQ_nCD_SD IRQ_EINT18
#define SD_IRQ_CD IRQ_nCD_SD
#define GPIO_nCD_SD (GPIO_MODE_IN | GPIO_PULLUP_DIS | GPIO_G10)
#define SD_GPIO_CD GPIO_nCD_SD
#define SD_CD_LEVEL_LOW /* 定义卡插入低电平有效 */
#endif
/*********************************************************************************************************** End Of File**********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -