#include "board.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Defines |
#define | BUFFER_SIZE 256 |
#define | BAUDRATE 256000 |
#define | USART USART1 |
#define | ID_USART ID_USART1 |
#define | PIN_USART1_CTS_IOR {PIO_PA25A_CTS1, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT} |
Functions |
| COMPILER_ALIGNED (8) |
| Configures USART in LON mode.
|
void | XDMAC_Handler (void) |
| xDMA interrupt handler.
|
int | main (void) |
| Application entry point.
|
Variables |
const Pin | pins [] = { PIN_USART1_RXD, PIN_USART1_TXD, PIN_USART1_CTS_IOR, PIN_USART1_RTS } |
char | palette [BUFFER_SIZE-2] |
Detailed Description
This file contains all the specific code for the usart_rs485 example.
Definition in file main.c.
Define Documentation
baud rate
Definition at line 117 of file main.c.
size of the receive buffer used by the DMA, in bytes.
Definition at line 114 of file main.c.
#define PIN_USART1_CTS_IOR {PIO_PA25A_CTS1, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT} |
RE for LON
Definition at line 133 of file main.c.
Register base for USART
Definition at line 120 of file main.c.
Function Documentation
Configures USART in LON mode.
Transmit buffer.
Definition at line 147 of file main.c.
Application entry point.
- Returns:
- Unused (ANSI-C compatibility).
Definition at line 411 of file main.c.
Variable Documentation
Initial value:"#*************************************************************************\n\r\
* This application gives an example of how to use USART in LON mode.\n\r\
* The LON mode provides connectivity to the local operating network (LON).\n\r\
* .\n\r\
"
Transmit buffer. resver 2 bytes for DATAL and L2HDR
Definition at line 139 of file main.c.
const Pin pins[] = { PIN_USART1_RXD, PIN_USART1_TXD, PIN_USART1_CTS_IOR, PIN_USART1_RTS } |
Pins to configure for the application.
Definition at line 136 of file main.c.