STM32F10x_StdPeriph_Examples/USART/Smartcard/main.c File Reference

Main program body. More...

#include "stm32f10x.h"
#include "platform_config.h"

Go to the source code of this file.

Data Structures

struct  SC_ATR

Defines

#define HIST_LENGHT   20
#define SC_Receive_Timeout   0x4000
#define SETUP_LENGHT   20
#define T0_PROTOCOL   0x00

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

void EXTI_Configuration (void)
 Configures the External Interrupts controller.
void GPIO_Configuration (void)
 Configures the different GPIO ports.
int main (void)
 Main program.
void NVIC_Configuration (void)
 Configures the nested vectored interrupt controller.
void RCC_Configuration (void)
 Configures the different system clocks.
uint8_t SC_decode_Answer2reset (__IO uint8_t *card)
 Decode the Card ATR Response.

Variables

volatile TestStatus ATRDecodeStatus = FAILED
__IO uint32_t CardInserted = 0
__IO uint32_t CardProtocol = 1
__IO uint32_t Counter = 0
__IO uint8_t DST_Buffer [50]
__IO uint32_t index = 0
SC_ATR SC_A2R
USART_ClockInitTypeDef USART_ClockInitStructure
USART_InitTypeDef USART_InitStructure

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/USART/Smartcard/main.c.


Define Documentation

#define HIST_LENGHT   20
#define SC_Receive_Timeout   0x4000

Definition at line 29 of file STM32F10x_StdPeriph_Examples/USART/Smartcard/main.c.

Referenced by main().

#define SETUP_LENGHT   20
#define T0_PROTOCOL   0x00
STM32F10x Standard Peripherals Library: Footer

 

 

 

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