File nut/include/dev/gpio.h


Included Files


Preprocessor definitions

#define _DEV_GPIO_H_

#define NUTGPIO_PORT 0

#define NUTGPIO_PORTA 1

#define NUTGPIO_PORTB 2

#define NUTGPIO_PORTC 3

#define NUTGPIO_PORTD 4

#define NUTGPIO_PORTE 5

#define NUTGPIO_PORTF 6

#define NUTGPIO_PORTG 7

#define NUTGPIO_PORTH 8

#define NUTGPIO_PORTI 9

#define NUTGPIO_PORTJ 10

#define NUTGPIO_PORTK 11

#define NUTGPIO_PORTL 12

#define NUTGPIO_EXTINT0 1

#define NUTGPIO_EXTINT1 2

#define NUTGPIO_EXTINT2 3

#define NUTGPIO_EXTINT3 4

#define NUTGPIO_EXTINT4 5

#define NUTGPIO_EXTINT5 6

#define NUTGPIO_EXTINT6 7

#define NUTGPIO_EXTINT7 8

#define NUTGPIO_EXTFIQ0 -1

#define GPIO_CFG_DISABLED 0x00000001

#define GPIO_CFG_OUTPUT 0x00000002

#define GPIO_CFG_PULLUP 0x00000004

#define GPIO_CFG_MULTIDRIVE 0x00000008

#define GPIO_CFG_DEBOUNCE 0x00000010


Typedef GPIO_VECTOR

typedef struct {...} GPIO_VECTOR
struct  
   {  
      void (*iov_handler)(void*);  
      void* iov_arg;  
   }  

Typedef GPIO_SIGNAL

typedef struct {...} GPIO_SIGNAL
struct  
   {  
      IRQ_HANDLER* ios_sig;  
      void (*ios_handler)(void*);  
      int (*ios_ctl)(int cmd,void* param,int bit);  
      GPIO_VECTOR* ios_vector;  
   }