/* * AT32 portmux interface. * * Copyright (C) 2006 Atmel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */
/* * Set up pin multiplexing, called from board init only. * * The following flags determine the initial state of the pin. */#define AT32_GPIOF_PULLUP 0x00000001 /* Enable pull-up */#define AT32_GPIOF_OUTPUT 0x00000002 /* Enable output driver */#define AT32_GPIOF_HIGH 0x00000004 /* Set output high */voidat32_select_periph(unsignedintpin,unsignedintperiph,unsignedlongflags);voidat32_select_gpio(unsignedintpin,unsignedlongflags);