Return to sa1111_gpiovar.h CVS log | Up to [local] / sys / arch / arm / sa11x0 |
File: [local] / sys / arch / arm / sa11x0 / sa1111_gpiovar.h (download)
Revision 1.1, Wed Mar 5 13:34:27 2008 UTC (16 years, 3 months ago) by nbrk
driver for SA-1111 GPIO controller; it has three GPIO banks (GPIO_A, B, C): bank A controls 4 i/o lines; bank B controls 6 lines; bank C controls 8 lines; Implemented functions for value (level) and direction changes. |
/* $Id: sa1111_gpiovar.h,v 1.1 2008/03/05 13:34:27 nbrk Exp $ */ #ifndef _SA1111_GPIO_H #define _SA1111_GPIO_H /* level */ #define SACGPIO_BANKA 0x00 #define SACGPIO_BANKB 0x01 #define SACGPIO_BANKC 0x02 int sa1111_gpio_get_bit(int gpiobank, uint8_t gpio); void sa1111_gpio_set_bit(int gpiobank, uint8_t gpio); void sa1111_gpio_clear_bit(int gpiobank, uint8_t gpio); /* direction */ #define SACGPIO_DIR_INPUT 0x00 #define SACGPIO_DIR_OUTPUT 0x01 void sa1111_gpio_set_dir(int gpiobank, uint8_t gpio, int dir); u_int sa1111_gpio_get_dir(int gpiobank, uint8_t gpio); #endif /* _SA1111_GPIO_H */