#include "lpc17xx_uart.h"#include "lpc17xx_libcfg.h"#include "lpc17xx_nvic.h"#include "lpc17xx_pinsel.h"Defines | |
| #define | UART_PORT 1 |
| #define | TEST_UART LPC_UART1 |
Functions | |
| void | print_menu (void) |
| Print Welcome Screen Menu subroutine. | |
| void | UART1_IRQHandler (void) |
| UART1 interrupt handler sub-routine reference, just to call the standard interrupt handler in uart driver. | |
| void | UART_ABIntCallback (uint32_t bABIntType) |
| Auto baudrate callback function. | |
| void | UART_IntErr (uint8_t bLSErrType) |
| UART Line Status Error callback. | |
| int | c_entry (void) |
Main UART testing example sub-routine First, the user must type 'A' or 'a' character to start Auto baud rate mode. Once Auto baud rate mode completed, print welcome screen, then press any key to have it read in from the terminal and returned back to the terminal.
| |
| int | main (void) |
| void | check_failed (uint8_t *file, uint32_t line) |
Variables | |
| uint8_t | syncmenu [] = "AutoBaudrate Status: Synchronous! \n\r" |
| uint8_t | menu1 [] = "Hello NXP Semiconductors \n\r" |
| uint8_t | menu2 [] |
| uint8_t | menu3 [] = "UART demo terminated!\n" |
| __IO FlagStatus | Synchronous |
| void print_menu | ( | void | ) |
Print Welcome Screen Menu subroutine.
| None |
print_menu
Print Welcome menu.
print menu
Print menu.
| [in] | none |
print_menu
print menu operation
Print Welcome menu.
print menu
Print Welcome Screen Menu subroutine.
print_menu
Print Welcome menu.
print menu
| [in] | none |
| [in] | none |
| [in] | None |
| None |
| [in] | none |
| void UART1_IRQHandler | ( | void | ) |
UART1 interrupt handler sub-routine reference, just to call the standard interrupt handler in uart driver.
UART0 interrupt handler sub-routine reference, just to call the standard interrupt handler in uart driver.
| None |
| void UART_ABIntCallback | ( | uint32_t | bABIntType | ) |
Auto baudrate callback function.
| [in] | bABType | Auto baudrate interrupt type |
| void UART_IntErr | ( | uint8_t | bLSErrType | ) |
UART Line Status Error callback.
| [in] | bLSErrType | UART Line Status Error Type |
| uint8_t menu2[] |
Initial value:
"UART Auto Baudrate demo\n\r\t " "MCU LPC17xx - ARM Cortex-M3 \n\r\t " "UART0 - Auto Baud rate mode used \n\r"
1.5.8