XMEGA chip-specific UART definitions. More...
#include <chip/memory-map.h>#include <clk/sys.h>#include <uart/uart_xmega.h>Go to the source code of this file.
Defines | |
| #define | uart_get_regs(id) ((void *) USART##id##_BASE) |
| Get a pointer to the UART registers. | |
XMEGA chip-specific UART definitions.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file uart.h.
| #define uart_get_regs | ( | id | ) | ((void *) USART##id##_BASE) |
Get a pointer to the UART registers.
| id | The id of the UART. The first id is 0 and it refers to UART0 on port C which is also the first UART in the peripheral module address map. The other UARTs that follow get increasing ids 1, 2, 3 ..., So UART1 on port C has id=1, UART0 on port D gets id=2 ... |
Take a look at the chip/memory-map.h or the device datasheet for available UARTs.
1.6.3