33typedef uint8_t gpio_t;
 
   39#define GPIO_PIN(port, pin)     (gpio_t)((port << 5) | pin) 
   45#define PIN_DIR_IN            (0x00 << 0) 
   46#define PIN_DIR_OUT           (0x01 << 0) 
   47#define PIN_MODE_PU           (0x00 << 1) 
   48#define PIN_MODE_PD           (0x02 << 1) 
   49#define PIN_MODE_NONE         (0x03 << 1) 
   50#define PIN_MODE_OD           (0x01 << 3) 
   52#define HAVE_GPIO_MODE_T 
   54    GPIO_IN    = (PIN_DIR_IN | PIN_MODE_NONE),              
 
   55    GPIO_IN_PD = (PIN_DIR_IN | PIN_MODE_PD),                
 
   56    GPIO_IN_PU = (PIN_DIR_IN | PIN_MODE_PU),                
 
   57    GPIO_OUT   = (PIN_DIR_OUT | PIN_MODE_NONE),             
 
   58    GPIO_OD    = (PIN_DIR_OUT | PIN_MODE_OD),               
 
   59    GPIO_OD_PU = (PIN_DIR_OUT | PIN_MODE_OD | PIN_MODE_PU)  
 
   67#define PROVIDES_PM_LAYERED_OFF 
   72#define PM_NUM_MODES    (3U) 
   78    LPC_UART_TypeDef *
dev;  
 
@ GPIO_OUT
select GPIO MASK as output
 
@ GPIO_IN
select GPIO MASK as input
 
gpio_mode_t
Available pin modes.
 
UART device configuration.
 
uint8_t pinsel_shift
TX/RX bitshift of the PINSEL# register.
 
uint8_t pinsel
PINSEL# of the RX and TX pin.
 
USART_t * dev
pointer to the used UART device
 
uint8_t irq_rx
RX IRQ number.
 
uint8_t clk_offset
The offset of the periph in the clk sel.
 
uint8_t pinsel_af
Alternate function of the PINSEL# register.