File nut/include/dev/gpio_lpc17xx.h


Included Files


Preprocessor definitions

#define NUTGPIO_PORT 0

#define NUTGPIO_PORT0 0

#define NUTGPIO_PORT1 1

#define NUTGPIO_PORT2 2

#define NUTGPIO_PORT3 3

#define NUTGPIO_PORT4 4

#define NUTGPIO_PORT5 5

#define NUTGPIO_PORTA NUTGPIO_PORT0

#define NUTGPIO_PORTB NUTGPIO_PORT1

#define NUTGPIO_PORTC NUTGPIO_PORT2

#define NUTGPIO_PORTD NUTGPIO_PORT3

#define NUTGPIO_PORTE NUTGPIO_PORT4

#define NUTGPIO_PORTF NUTGPIO_PORT5

#define NUTGPIO_EXTINT0 1

#define NUTGPIO_EXTINT1 2

#define NUTGPIO_EXTINT2 3

#define NUTGPIO_EXTINT3 4

#define NUTGPIO_EXTINT4 5

#define GPIO_CFG_INPUT 0x00000000

#define GPIO_CFG_DISABLED 0x00000001

#define GPIO_CFG_OUTPUT 0x00000002

#define GPIO_CFG_PULLUP 0x00000004

#define GPIO_CFG_PULLDOWN 0x00000008

#define GPIO_CFG_REPEATER 0x00000010

#define GPIO_CFG_MULTIDRIVE 0x00000020

#define GPIO_CFG_PERIPHERAL_MASK 0x07000000

#define GPIO_CFG_PERIPHERAL_POS 24

#define GPIO_CFG_PERIPHERAL0 0x00000000

#define GPIO_CFG_PERIPHERAL1 0x01000000

#define GPIO_CFG_PERIPHERAL2 0x02000000

#define GPIO_CFG_PERIPHERAL3 0x03000000

#define GPIO_BANKID2BASE( bank )

#define GpioPinGet( bank, bit )

#define GpioPinSet( bank, bit, value )

#define GpioPinMaskSet( bank, bit, value )

#define GpioPinSetHigh( bank, bit )

#define GpioPinSetLow( bank, bit )

#define GpioPortGet( bank )

#define GpioPortSet( bank, value )

#define GpioPortSetHigh( bank, mask )

#define GpioPortSetLow( bank, mask )

#define GpioPortMaskSet( bank, mask )


Typedef GPIO_VECTOR

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

Typedef GPIO_SIGNAL

typedef struct _gpio_signal GPIO_SIGNAL
See: Type struct _gpio_signal

Type struct _gpio_signal

struct _gpio_signal
struct _gpio_signal  
   {  
      int ios_port;  
      void (*ios_handler)(void*);  
      int (*ios_ctl)(GPIO_SIGNAL* sig,int cmd,void* param,int bit);  
      GPIO_VECTOR* ios_vector;  
      uint32_t enabled;  
      uint32_t mode_rising_enabled;  
      uint32_t mode_falling_enabled;  
   }  

External Variables

sig_GPIO0
extern GPIO_SIGNAL sig_GPIO0

sig_GPIO2
extern GPIO_SIGNAL sig_GPIO2