chip/atxmega128a1/include/chip/uart.h File Reference

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.

Detailed Description

XMEGA chip-specific UART definitions.

Copyright (C) 2009 Atmel Corporation. All rights reserved.

Definition in file uart.h.


Define Documentation

#define uart_get_regs ( id   )     ((void *) USART##id##_BASE)

Get a pointer to the UART registers.

Parameters:
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.

Returns:
A pointer to a virtual address corresponding to the base address of the UARTid registers.

Definition at line 60 of file uart.h.

Generated on Thu Apr 29 14:09:58 2010 for display-demo by  doxygen 1.6.3