Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Espressif ESP32C2 pin control helpers

Macros for pin control configuration of Espressif ESP32C2. More...

Files

file  esp32c2-pinctrl.h
 Devicetree pin control helpers for Espressif ESP32C2.

Detailed Description

Macros for pin control configuration of Espressif ESP32C2.

The macros follow a naming convention: <PERIPHERAL>_<SIGNAL>_GPIO<PIN>. For example, I2C0_SCL_GPIO1 corresponds to the SCL signal of I2C0 mapped to GPIO1.

#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
#include <zephyr/dt-bindings/pinctrl/esp32c2-pinctrl.h>
#include <zephyr/dt-bindings/pinctrl/esp32c2-gpio-sigmap.h>
&pinctrl {
uart0_default: uart0_default {
group1 {
pinmux = <UART0_TX_GPIO21>;
};
group2 {
pinmux = <UART0_RX_GPIO20>;
bias-pull-up;
};
};
};