LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uart.c File Reference
#include "board.h"

Go to the source code of this file.

Macros

#define BUFFER_SIZE   0xF
 
#define UART_TEST_DEFAULT_BAUDRATE   115200
 
#define UART_TEST_REPEAT_NUMBER   0xF
 

Functions

static void bufferInit (uint8_t seed)
 
static void bufferCheck ()
 
static void App_UART_Init (LPC_USART_T *pUART)
 
void UART1_IRQHandler (void)
 Handle interrupt from UART.
 
int main (void)
 Application main function.
 

Variables

static uint8_t TxBuf0 [BUFFER_SIZE]
 
static uint8_t RxBuf1 [BUFFER_SIZE]
 
static uint8_t RxBuf0 [BUFFER_SIZE]
 
static uint32_t RxBufCnt1 = 0
 
static uint32_t TxBufCnt1 = 0
 
static volatile bool receiveCompleted = true
 
static volatile bool sendCompleted = true