STM32F10x_StdPeriph_Examples/SDIO/main.c File Reference

Main program body. More...

#include "stm32f10x.h"
#include "stm32_eval_sdio_sd.h"

Go to the source code of this file.

Defines

#define BLOCK_SIZE   512
#define MULTI_BUFFER_SIZE   (BLOCK_SIZE * NUMBER_OF_BLOCKS)
#define NUMBER_OF_BLOCKS   2

Enumerations

enum  TestStatus {
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED
}

Functions

TestStatus Buffercmp (uint8_t *pBuffer1, uint8_t *pBuffer2, uint32_t BufferLength)
 Compares two buffers.
TestStatus eBuffercmp (uint8_t *pBuffer, uint32_t BufferLength)
 Checks if a buffer has all its values are equal to zero.
void Fill_Buffer (uint8_t *pBuffer, uint32_t BufferLength, uint32_t Offset)
 Fills buffer with user predefined data.
int main (void)
 Main program.
void NVIC_Configuration (void)
 Configures SDIO IRQ channel.

Variables

uint8_t Buffer_Block_Rx [BLOCK_SIZE]
uint8_t Buffer_Block_Tx [BLOCK_SIZE]
uint8_t Buffer_MultiBlock_Rx [MULTI_BUFFER_SIZE]
uint8_t Buffer_MultiBlock_Tx [MULTI_BUFFER_SIZE]
volatile TestStatus EraseStatus = FAILED
SD_CardInfo SDCardInfo
SD_Error Status = SD_OK
volatile TestStatus TransferStatus1 = FAILED
volatile TestStatus TransferStatus2 = FAILED

Detailed Description

Main program body.

Author:
MCD Application Team
Version:
V3.4.0
Date:
10/15/2010

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.

© COPYRIGHT 2010 STMicroelectronics

Definition in file STM32F10x_StdPeriph_Examples/SDIO/main.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32