This commit adds the asynchronous UART API testing support on the SAM D21 Xplained Pro board. The SERCOM1 module is used as the secondary loop-back UART, which is required to run this test. Note that no external UART loop-back connection is necessary to run this test, because the SERCOM1 UART TX and RX pads are configured to be internally connected. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
12 lines
239 B
Plaintext
12 lines
239 B
Plaintext
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
&sercom1 {
|
|
/* Internally loop-back TX and RX on PAD0 */
|
|
rxpo = <0>;
|
|
txpo = <0>;
|
|
|
|
/* Configure DMA channels for async operation */
|
|
dmas = <&dmac 0 3>, <&dmac 1 4>;
|
|
dma-names = "rx", "tx";
|
|
};
|