Loading...
Searching...
No Matches
gpio_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Tom Hert git@annsann.eu>
3 * SPDX-FileCopyrightText: 2025 HAW Hamburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
18
20#define GPIO_PIN_NUMOF 30u
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
61
62#ifdef __cplusplus
63}
64#endif
65
gpio_function_select_t
Possible function values for gpio_io_ctrl_t::function_select.
Definition gpio_conf.h:29
@ FUNCTION_SELECT_PIO0
connect pin to the first PIO peripheral
Definition gpio_conf.h:46
@ FUNCTION_SELECT_CLOCK
connect pin to the timer (depending on pin: external clock, clock output, or not supported)
Definition gpio_conf.h:53
@ FUNCTION_SELECT_PIO1
connect pin to the second PIO peripheral
Definition gpio_conf.h:49
@ FUNCTION_SELECT_I2C
connect pin to the I2C peripheral (SCL/SDA depends on pin)
Definition gpio_conf.h:37
@ FUNCTION_SELECT_PWM
connect pin to the timer for PWM (channel depends on pin)
Definition gpio_conf.h:40
@ FUNCTION_SELECT_UART
connect pin to the UART peripheral (TXD/RXD depends on pin)
Definition gpio_conf.h:34
@ FUNCTION_SELECT_USB
connect pin to the USB peripheral (function depends on pin)
Definition gpio_conf.h:56
@ FUNCTION_SELECT_SIO
use pin as vanilla GPIO
Definition gpio_conf.h:43
@ FUNCTION_SELECT_SPI
connect pin to the SPI peripheral (MISO/MOSI/SCK depends on pin)
Definition gpio_conf.h:31
@ FUNCTION_SELECT_NONE
Reset value, pin unconnected.
Definition gpio_conf.h:59