Example description
The UART_ROM example demonstrates using the USART API ROM functions.
Special connection requirements
There are no special connection requirements for this example.
Build procedures:
LPC8xx example quickstart for IAR EWARM
LPC8xx example quickstart for Keil uVision4
LPC8xx example quickstart for Code Red Xpresso
Supported boards and board setup:
NXP Xpresso LPC812 board
Submitting LPCOpen issues:
Community support for LPCOpen
| #define APP_UART_RECEIVE_BUGGER_SIZE 9 |
| static void App_error_routine |
( |
| ) |
|
|
static |
| static void App_Interrupt_Send |
( |
const char * |
send_data, |
|
|
uint32_t |
lenght |
|
) |
| |
|
static |
| static void App_Polling_Receive |
( |
char * |
receive_buffer, |
|
|
uint32_t |
lenght |
|
) |
| |
|
static |
| static void App_Polling_Send |
( |
const char * |
send_data, |
|
|
uint32_t |
lenght |
|
) |
| |
|
static |
| static void App_UART_API_Init |
( |
| ) |
|
|
static |
Main Function.
Main program body.
- Returns
- Nothing
defined(CHIP_LPC175X_6X)
Definition at line 197 of file uart_rom.c.
| void UART0_IRQHandler |
( |
void |
| ) |
|
UART0 ISR handler.
- Returns
- Nothing
Definition at line 187 of file uart_rom.c.
| const char Interrupt_info[] |
|
static |
Initial value:=
"\r\nUART Interrupt mode demo! Type a character to be echoed back or \'x\' to exit.\0"
Definition at line 66 of file uart_rom.c.
| const char Polling_info[] = "UART Polling mode demo! Please type 'hello NXP' to continue.\0" |
|
static |
| const char terminate[] = "\r\nDemo is terminated. Thanks for using.\0" |
|
static |
| volatile uint8_t test_stop = 0 |
|
static |
| const char welcome[] = "LPC812 XPresso Board USART API ROM Example.\0" |
|
static |