lpc1768/include/periph_cpu.h

CPU specific definitions for internal peripheral handling.

HAVE_GPIO_T
uint8_t gpio_t
PIN_DIR_IN
1
(0x00 << 0)
PIN_DIR_OUT
1
(0x01 << 0)
PIN_MODE_PU
1
(0x00 << 1)
PIN_MODE_PD
1
(0x02 << 1)
PIN_MODE_NONE
1
(0x03 << 1)
PIN_MODE_OD
1
(0x01 << 3)
HAVE_GPIO_MODE_T
enum gpio_mode_t
GPIO_IN_ANALOG = ((uint8_t)OVERRIDE_ANALOG)
input, analog
GPIO_IN_OUT
input and output
GPIO_IN_OD
input and open-drain output
GPIO_IN_OD_PU
input and open-drain output
GPIO_IN = ((uint8_t)OVERRIDE_DISABLE)
input, no pull
GPIO_IN_PD = ((uint8_t)OVERRIDE_PULLDOWN)
input, pull-down
GPIO_IN_PU = ((uint8_t)OVERRIDE_PULLUP)
input, pull-up
GPIO_OUT = ((uint8_t)OVERRIDE_ENABLE)
output
GPIO_OD = (0xff)
not supported
GPIO_OD_PU = (0xff)
not supported
GPIO_PIN( port, pin)

Define a custom GPIO_PIN macro for the lpc1768.

1
(gpio_t)((port << 5) | pin)
PROVIDES_PM_LAYERED_OFF

CPU provides own pm.h::pm_off() function.

PM_NUM_MODES

Power management configuration.

1
(2U)