AVR Software Framework: AVR XMEGA IOPORT driver
Copyright © 2010 Atmel Corporation
Introduction
The Input/Output Port driver can used to control the direction and level of the I/O lines on the device.
XMEGA IOPORT Driver Example
There is one example included in this framework and it support both GCC and IAR: