![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
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_Type *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 | uartPolling_menu1 [] = "Hello NXP Semiconductors \n\r" |
static uint8_t | uartPolling_menu2 [] = "UART polling mode demo \n\r" |
static uint8_t | uartPolling_menu3 [] = "\n\rUART demo terminated!" |
static uint8_t | uartPolling_menu4 [] |
static uint8_t | uartPolling_menu5 [] = "\n\rPolling mode is running now! Please press \'c\' and choose another mode \n\r" |
static uint8_t | uart_interrupt_menu [] |
static uint8_t | uart_interrupt_menu1 [] = "UART interrupt menu 1 \n\r" |
static uint8_t | uart_interrupt_menu2 [] = "UART interrupt menu 2 \n\r" |
static uint8_t | uart_interrupt_menu3 [] = "UART interrupt menu 3 \n\r" |
static uint8_t | uart_interrupt_menu4 [] = "UART interrupt menu 4 \n\r" |
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 |