CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
main.c File Reference
#include "stm32f10x.h"
#include "platform_config.h"
#include "stm32f10x_conf.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define countof(a)   (sizeof(a) / sizeof(*(a)))
#define RxBufferSize1   TxBufferSize2
#define RxBufferSize2   TxBufferSize1
#define TxBufferSize1   (countof(TxBuffer1) - 1)
#define TxBufferSize2   (countof(TxBuffer2) - 1)

Enumerations

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

Functions

TestStatus Buffercmp (uint8_t *pBuffer1, uint8_t *pBuffer2, uint16_t BufferLength)
 Compares two buffers.
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.

Variables

uint8_t NbrOfDataToRead1 = RxBufferSize1
uint8_t NbrOfDataToRead2 = RxBufferSize2
uint8_t NbrOfDataToTransfer1 = TxBufferSize1
uint8_t NbrOfDataToTransfer2 = TxBufferSize2
uint8_t RxBuffer1 [RxBufferSize1]
uint8_t RxBuffer2 [RxBufferSize2]
__IO uint8_t RxCounter1 = 0x00
__IO uint8_t RxCounter2 = 0x00
__IO TestStatus TransferStatus1 = FAILED
__IO TestStatus TransferStatus2 = FAILED
uint8_t TxBuffer1 [] = "USART Interrupt Example: USARTy -> USARTz using Interrupt"
uint8_t TxBuffer2 [] = "USART Interrupt Example: USARTz -> USARTy using Interrupt"
__IO uint8_t TxCounter1 = 0x00
__IO uint8_t TxCounter2 = 0x00
USART_InitTypeDef USART_InitStructure