dm_mmc.h

来自「采用美国adi公司的bf系列」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef _MMC_H_
#define _MMC_H_

#include "dm_types.h"
// MMC commands
#define INIT_CMD0_ERROR			0xFF
#define INIT_CMD1_ERROR			0xFE
#define WRITE_BLOCK_ERROR		0xFD
#define READ_BLOCK_ERROR		0xFC
#define MMC_RESET				0x40 + 0
#define MMC_INIT				0x40 + 1
#define MMC_READ_CSD			0x40 + 9
#define MMC_READ_CID			0x40 + 10
#define MMC_STOP_TRANSMISSION	0x40 + 12
#define MMC_SEND_STATUS			0x40 + 13
#define MMC_SET_BLOCKLEN		0x40 + 16
#define MMC_READ_BLOCK			0x40 + 17
#define MMC_READ_MULTI_BLOCK	0x40 + 18
#define MMC_WRITE_BLOCK			0x40 + 24
#define MMC_WRITE_MULTI_BLOCK	0x40 + 25
#define BYTE_PER_SEC			512

uint8_t Write_Command_MMC(uint32_t cmd, uint32_t address);
#endif 

⌨️ 快捷键说明

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