void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
ioportid_t gpio_port_t
Abstract gpio port type for hardware independent part.
void gpio_setup_input(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs.
void gpio_set(uint32_t port, uint16_t pin)
Set a gpio output to high level.
uint16_t gpio_get(uint32_t gpioport, uint16_t gpios)
Read a gpio value.
void gpio_clear(uint32_t port, uint16_t pin)
Clear a gpio output to low level.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.