43 #define GPIO_PIN(port, pin) (gpio_t)((port << 5) | pin)
49 #define PIN_DIR_IN (0x00 << 0)
50 #define PIN_DIR_OUT (0x01 << 0)
51 #define PIN_MODE_PU (0x00 << 1)
52 #define PIN_MODE_PD (0x02 << 1)
53 #define PIN_MODE_NONE (0x03 << 1)
54 #define PIN_MODE_OD (0x01 << 3)
56 #define HAVE_GPIO_MODE_T
58 GPIO_IN = (PIN_DIR_IN | PIN_MODE_NONE),
61 GPIO_OUT = (PIN_DIR_OUT | PIN_MODE_NONE),
62 GPIO_OD = (PIN_DIR_OUT | PIN_MODE_OD),
63 GPIO_OD_PU = (PIN_DIR_OUT | PIN_MODE_OD | PIN_MODE_PU)
71 #define PROVIDES_PM_LAYERED_OFF
76 #define PM_NUM_MODES (2U)
82 LPC_UART_TypeDef *
dev;