gpio.h File Reference

Go to the source code of this file.

Defines

#define AVR32_GPIO_BANK(pin)   (pin >> 5)
#define AVR32_GPIO_PIN(pin)   (pin & 0x1F)
#define AVR32_GPIO_FUNCTION(x)   ((_BV(x) << 5 ) | GPIO_CFG_DISABLED)


Define Documentation

#define AVR32_GPIO_BANK ( pin   )     (pin >> 5)

Converts AVR32 pin macros to the proper GPIO bank value

Definition at line 44 of file gpio.h.

#define AVR32_GPIO_PIN ( pin   )     (pin & 0x1F)

Converts AVR32 pin macros to the proper GPIO pin value

Definition at line 49 of file gpio.h.

#define AVR32_GPIO_FUNCTION (  )     ((_BV(x) << 5 ) | GPIO_CFG_DISABLED)

Converts AVR32 function macros to the proper GPIO_CFG_PERIPHERALx value

Definition at line 54 of file gpio.h.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/