📄 dm_mmc.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -