打印

哪位能提供一下TM32F103xx的SDIO驱动实例

[复制链接]
2723|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lboy|  楼主 | 2008-8-17 09:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
哪位能提供一下TM32F103xx的SDIO驱动实例 
沙发
grant_jx| | 2008-8-17 15:02 | 只看该作者

固件库2.0版本不是有一个SDIO例程吗?

Example description
===================
This example provides a basic example of how to use the SDIO firmware library and an associate driver to perform read/write operations on the SD Card memory mounted on the STM3210E-EVAL board.
Below is a description of the different example steps:
  - Configure the SDIO according to the desired SDIO_CK clock frequency.
  - Reset the SD Card
  - Identify the SD Card
  - Initializes the SD Card
  - Get the SD Card Info
  - Select the SD Card
  - Enable the Wide Bus mode (4-bit data)
  - Erase the correponding blocks
  - Read the Erased blocks
  - Test if the corresponding Blocks are well erased: check if the EraseStatus 
    variable is equal to PASSED.
  - Set the Data Transfer Mode to DMA   
  - Write a single Block             
  - Read a single Block
  - Comapare the written Block and the read one: check if the TransferStatus1 
    variable is equal to PASSED.
  - Write multiple Blocks (2)             
  - Read multiple Blocks (2)
  - Comapare the written Blocks and the read one: check if the TransferStatus2 
    variable is equal to PASSED.  

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

24

帖子

0

粉丝