本程序是在ATMEL公司的ATMEGA128芯片上实现对MMC卡物理存储读写操作,采用SPI接口对其操作。在KingSton
512M TF 64M 卡上测试过。
//==============================读MMC原始数据函数========================================
//环境:WINAVR V2.0
//版本:Bate1.0
//日期:2007/9/26
//编者:李光祥
//说明:
//修正:
//=======================================================================================
#ifndef SD_RAW_H
#define SD_RAW_H
#include <stdint.h>
//---------------------------------------------------------------------------------------
#define SUCCEED 0
#define UNAVAILABLE 1
#define LOCKED 2
#define GO_IDLE_ERR 3
#define SEND_OP_ERR 4
#define SET_BLOCKLEN_ERR 5
#define RAW_READ_ERR 6
#define RAW_CMD_R1_ERR 7
#define PARTITION_VOID