# AVR32 - PIO Driver Documentation

## Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs in the software for application note AVR32111. It also gives an examples of the usage of the PIO driver

## Compilation Info

This software was written for the GNU GCC for AVR32 and IAR Systems compiler for AVR32. Other compilers may or may not work.

## Device Info

All AVR32 devices with a PIO module can be used. This example has been tested with the following setup:

- STK1000 development kit
- AP7000 top board for STK1000 development kit

## Setup Information

CPU speed: 20 MHz

- The header SW6 must be jumped to GPIO for the signals to be routed correctly
- The header SW4 must be jumped to GPIO for the signals to be routed correctly

## Application Usage

The example is dip-switch lights. It's toggles the leds according to which corresponding dip-switch which is pressed. You must connect a cable from J3 to LED and J1 to J25 for the correct behaviour.

When recompiling a project, make sure to run make clean before recompiling

## Main Files

- pio.c: PIO driver source
- pio.h: PIO driver header
- pio_example.c: PIO example

## Contact Info

For more info about Atmel AVR32 visit Atmel AVR32
AVR32 Application Notes
Support mail: avr32@atmel.com