25#if defined(LIBOPENCM3_GPIO_H)
27#ifndef LIBOPENCM3_GPIO_COMMON_3A3U3X_H
28#define LIBOPENCM3_GPIO_COMMON_3A3U3X_H
36 GPIO_FLAG_GPINPUT = 0,
37 GPIO_FLAG_GPOUTPUT = 1,
38 GPIO_FLAG_PERIPHA = 2,
39 GPIO_FLAG_PERIPHB = 3,
40 GPIO_FLAG_OPEN_DRAIN = (1 << 3),
41 GPIO_FLAG_PULL_UP = (1 << 4),
45void gpio_init(uint32_t gpioport, uint32_t pins,
enum gpio_flags flags);
51#warning "gpio_common_3a3u3x.h should not be included explicitly, only via gpio.h"
void gpio_init(uint32_t port, uint32_t pins, enum gpio_flags flags)
Initialize GPIO pins.