| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
uart.c File Reference
`#include "chip.h"`
`#include "board.h"`

Go to the source code of this file.

## Macros
#define | LPC_UART LPC_USART0
#define | UARTx_IRQn USART0_IRQn
#define | UARTx_IRQHandler UART0_IRQHandler
#define | DMA_TIMEOUT 0xA000000

## Functions
void | App_DMA_Init (void)
void | App_DMA_DeInit (void)
void | App_DMA_Test (void)
void | Print_Menu_Interrupt (LPC_USART_T *UARTx)
void | App_Interrupt_Init (void)
void | App_Interrupt_DeInit (void)
void | App_Interrupt_Test (void)
void | Print_Menu_Polling (void)
void | DMA_IRQHandler (void)
| GPDMA interrupt handler sub-routine.
void | UARTx_IRQHandler (void)
| UART interrupt handler sub-routine.
int | main (void)
| Main UART program body.

## Variables
static uint8_t | uartABComplete [] = "UART Auto-Baudrate synchronized! \r\n"
static uint8_t | uartPolling_menu1 [] = "Hello NXP Semiconductors \r\n"
static uint8_t | uartPolling_menu2 [] = "UART polling mode demo \r\n"
static uint8_t | uartPolling_menu3 [] = "\r\nUART demo terminated!"
static uint8_t | uartPolling_menu4 []
static uint8_t | uartPolling_menu5 [] = "\r\nPolling mode is running now! Please press \'c\' and choose another mode \r\n"
static uint8_t | uart_interrupt_menu []
static uint8_t | uart_interrupt_menu1 [] = "UART interrupt menu 1 \r\n"
static uint8_t | uart_interrupt_menu2 [] = "UART interrupt menu 2 \r\n"
static uint8_t | uart_interrupt_menu3 [] = "UART interrupt menu 3 \r\n"
static uint8_t | uart_interrupt_menu4 [] = "UART interrupt menu 4 \r\n"
static uint8_t | dmaChannelNumTx
static uint8_t | dmaChannelNumRx
static uint8_t | uartDMA_menu []
static volatile uint32_t | channelTC
static volatile uint32_t | channelTCErr
static FunctionalState | isDMATx = ENABLE