基本概念
MMC卡和SD卡
MMC卡(MultiMedia Card),是1997年由西门子和闪迪共同开发的一种内存卡标准。
SD卡(Secure Digital Memory Card)是建立在MMC卡之上的一种内存卡标准,由东芝在MMC卡技术中加入了加密技术而形成。现在使用的内存卡一般都是SD卡及其派生的各种规格(比如miniSD、microSD、SDHC等)。
SDMMC/SDIO和SPI
例程sdmmc
例程中提到,内部上拉电阻不够,必须保证外部有10k上拉电阻接到总线上
// Enable internal pullups on enabled pins. The internal pullups
// are insufficient however, please make sure 10k external pullups are
// connected on the bus. This is for debug / example purpose only.
slot_config.flags |= SDMMC_SLOT_FLAG_INTERNAL_PULLUP;