00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00023 /* ************************************************************************ 00024 00025 Copyright (c) 2006, Atmel Corporation All rights reserved. 00026 00027 Redistribution and use in source and binary forms, with or without 00028 modification, are permitted provided that the following conditions are met: 00029 00030 1. Redistributions of source code must retain the above copyright notice, 00031 this list of conditions and the 00032 following disclaimer. 00033 00034 2. Redistributions in binary form must reproduce the above copyright notice, 00035 this list of conditions and the following disclaimer in the documentation 00036 and/or other materials provided with the distribution. 00037 00038 3. The name of ATMEL may not be used to endorse or promote products 00039 derived from this software without specific prior written permission. 00040 00041 THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS 00042 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00043 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00044 PARTICULAR PURPOSE ARE EXPRESSLY AND SPECIFICALLY 00045 DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, 00046 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00047 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00048 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00049 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00050 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00051 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 00052 WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00053 00054 POSSIBILITY OF SUCH DAMAGE. 00055 00056 ************************************************************************ */ 00057 00058 #ifndef _pio_h_ 00059 #define _pio_h_ 00060 00061 #ifdef __GNUC__ 00062 #include <avr32/io.h> 00063 #elif __ICCAVR32__ 00064 #include <avr32/ioap7000.h> 00065 #else 00066 #error No known compiler used 00067 #endif 00068 00073 typedef char avr32_piomap_t[][2]; 00074 00075 #define PIO_INVALID_ARGUMENT -1 00076 #define PIO_SUCCESS 0 00077 00083 volatile avr32_pio_t *pioGetHandle(int port); 00084 00091 int pio_setup_pin(int pin, int function); 00092 00099 void pio_enable_module(avr32_piomap_t piomap, int size); 00100 00101 #endif
1.5.3-20071008