Defines | |
| #define | TX_GPIO_PORT NUTGPIO_PORT0 |
| USART1 GPIO configuartion and assignment. | |
| #define | TX_GPIO_PIN 2 |
| #define | TX_GPIO_PIN_CFG GPIO_CFG_OUTPUT | GPIO_CFG_PERIPHERAL1 |
| #define | RX_GPIO_PORT NUTGPIO_PORT0 |
| #define | RX_GPIO_PIN 3 |
| #define | RX_GPIO_PIN_CFG GPIO_CFG_INPUT | GPIO_CFG_PERIPHERAL1 |
| #define | USART_HWFLOWCTRL USART_HardwareFlowControl_None |
| USART1 base configuration. | |
| #define | USARTn LPC_UART0 |
| #define | USARTnBase LPC_UART0_BASE |
| #define | USARTirqn UART0_IRQn |
| #define | SigUSART sig_USART0 |
| #define | DcbUSART dcb_usart0 |
LPC17xx USART1 Device | |
| NUTDEVICE | devUsartLpc176x_0 |
| USART0 device information structure. | |
| #define TX_GPIO_PORT NUTGPIO_PORT0 |
USART1 GPIO configuartion and assignment.
| #define TX_GPIO_PIN 2 |
| #define TX_GPIO_PIN_CFG GPIO_CFG_OUTPUT | GPIO_CFG_PERIPHERAL1 |
| #define RX_GPIO_PORT NUTGPIO_PORT0 |
| #define RX_GPIO_PIN 3 |
| #define RX_GPIO_PIN_CFG GPIO_CFG_INPUT | GPIO_CFG_PERIPHERAL1 |
| #define USART_HWFLOWCTRL USART_HardwareFlowControl_None |
USART1 base configuration.
| #define USARTn LPC_UART0 |
Referenced by Stm32UsartSetStopBits().
| #define USARTnBase LPC_UART0_BASE |
| #define USARTirqn UART0_IRQn |
| #define SigUSART sig_USART0 |
| #define DcbUSART dcb_usart0 |
{
0,
{'u', 's', 'a', 'r', 't', '0', 0, 0, 0},
IFTYP_CHAR,
LPC_UART0_BASE,
UART0_IRQn,
NULL,
&dcb_usart0,
UsartInit,
UsartIOCtl,
UsartRead,
UsartWrite,
UsartOpen,
UsartClose,
UsartSize
}
USART0 device information structure.
An application must pass a pointer to this structure to NutRegisterDevice() before using the serial communication driver of the LPC17xx's on-chip USART0.
The device is named usart0.