SDIO

所属分类:单片机开发
开发工具:Others
文件大小:61KB
下载次数:53
上传日期:2011-07-03 17:21:10
上 传 者akarmy
说明:  keil软件对ARM单片机编程(STM32),实现通过SDIO方便地对SD卡进行读写操作
(keil software for the ARM microcontroller programming (STM32), achieved through SDIO easily read and write to SD card)

文件列表:
SDIO_Test\inc\sdcard.h (14077, 2008-07-05)
SDIO_Test\inc\stm32f10x_conf.h (6283, 2008-12-14)
SDIO_Test\inc\stm32f10x_dma.h (17974, 2008-07-05)
SDIO_Test\inc\stm32f10x_sdio.h (18326, 2008-07-05)
SDIO_Test\listing\cortexm3_macro.lst (27679, 2009-02-18)
SDIO_Test\listing\SDIO.map (96520, 2009-02-18)
SDIO_Test\listing\stm32f10x_vector.lst (42493, 2009-02-18)
SDIO_Test\project\SDIO.Uv2 (3696, 2008-12-14)
SDIO_Test\src\main.c (14273, 2008-12-24)
SDIO_Test\src\sdcard.c (95101, 2008-11-11)
SDIO_Test\src\stm32f10x_dma.c (33291, 2008-07-05)
SDIO_Test\src\stm32f10x_it.c (29247, 2008-12-14)
SDIO_Test\src\stm32f10x_sdio.c (39336, 2008-07-05)
SDIO_Test\src\usart1.c (8829, 2008-09-29)
SDIO_Test\inc (0, 2011-07-03)
SDIO_Test\listing (0, 2011-07-03)
SDIO_Test\project (0, 2011-07-03)
SDIO_Test\Read_me (0, 2011-07-03)
SDIO_Test\Run_In_Flash (0, 2011-02-09)
SDIO_Test\src (0, 2011-07-03)
SDIO_Test (0, 2011-07-03)

/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V2.0.1 * Date : 06/13/2008 * Description : Description of the SDIO Example. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ 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 EM-STM3210E 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. Directory contents ================== stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Header for stm32f10x_it.c sdcard.c SD Card Driver file sdcard.h Header for sdcard.c main.c Main program Hardware environment ==================== This example runs on STMicroelectronics STM3210E-EVAL evaluation board and can be easily tailored to any other hardware. How to use it ============= In order to make the program work, you must do the following: - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files: + stm32f10x_lib.c + stm32f10x_gpio.c + stm32f10x_rcc.c + stm32f10x_nvic.c + stm32f10x_flash.c + stm32f10x_sdio.c + stm32f10x_dma.c - Link all compiled files and load your image into either RAM or Flash - Run the example ******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者