85 return palReadPad(port, pin);
105 palClearPad(port, pin);
115 palTogglePad(port, pin);
void gpio_setup_input_pulldown(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs with pull down resistors enabled.
static void gpio_clear(ioportid_t port, uint16_t pin)
Clear a gpio output to low level.
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
void gpio_setup_input(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs.
static void gpio_toggle(ioportid_t port, uint16_t pin)
Toggle a gpio output to low level.
void gpio_setup_pin_af(ioportid_t port, uint16_t pin, uint8_t af)
Setup a gpio for input or output with alternate function.
void gpio_setup_pin_analog(ioportid_t port, uint16_t pin)
Setup a gpio for analog use.
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
ChibiOS doesn't define pin numbers with format GPIOX let's do it here.
void gpio_setup_input_pullup(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs with pull up resistor enabled.
static void gpio_set(ioportid_t port, uint16_t pin)
Set a gpio output to high level.