?? sdconfig.h
字號:
/****************************************Copyright (c)**************************************************
** Guangzhou ZLG-MCU Development Co.,LTD.
** graduate school
** http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name: sdconfig.h
** Last modified Date: 2005-3-11
** Last Version: V2.0
** Descriptions: SD/MMC 卡讀寫模塊: 配置文件
** Soft Packet of SD/MMC Card: configuration header file
**
**------------------------------------------------------------------------------------------------------
** Created by: Ming Yuan Zheng
** Created date: 2005-1-6
** Version: V1.0
** Descriptions: 初始版本 The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by: Ming Yuan Zheng
** Modified date: 2005-3-11
** Version: V2.0
** Descriptions: 增加了LPC22xx的硬件配置
** add LPC22xx hardware configuration
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#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; /* 單精度浮點數(shù)(32位長度) */
typedef double FP64; /* 雙精度浮點數(shù)(64位長度) */
/* ZLG/SD 軟件包的參數(shù)配置 */
#define SD_UCOSII_EN 1 /* 是(1)否(0)在UCOS-II上運行本軟件包 */
#define SDBUS_MODE_EN 1 /* 是(1)否(0)使能訪問卡的SD總線模式 */
#define SD_WIDTHBUS_EN 1 /* 是(1)否(0)使能SD卡的寬總線模式(僅SD總線模式) */
#define SD_CRC_EN 1 /* 是(1)否(0)在數(shù)據(jù)傳輸時使用CRC校驗 */
/* 下列函數(shù), 如果用戶不需要, 可置為 0 裁剪指定函數(shù) */
#define SD_ReadMultiBlock_EN 1 /* 是(1)否(0)使能讀多塊函數(shù) */
#define SD_WriteMultiBlock_EN 1 /* 是(1)否(0)使能寫多塊函數(shù) */
#define SD_EraseBlock_EN 1 /* 是(1)否(0)使能擦卡函數(shù) */
/* 包含本軟件包的所有頭文件 */
#include "config.h"
#include "sdcommon.h"
#if SDBUS_MODE_EN
#include "sdhal.h"
#else
#include "sdspihal.h"
#endif
#include "sdcrc.h"
#include "sdcmd.h"
#include "sddriver.h"
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -