Skip to content

Commit 8a48cd1

Browse files
Raffael Rostagnonashif
authored andcommitted
drivers: pinctrl: esp32c2: Add support
Add pinctrl support to ESP32C2 and ESP8684 Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 0db0799 commit 8a48cd1

File tree

2 files changed

+535
-1
lines changed

2 files changed

+535
-1
lines changed

drivers/pinctrl/pinctrl_esp32.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
#include <zephyr/drivers/pinctrl.h>
1313
#include <zephyr/drivers/pinctrl/pinctrl_esp32_common.h>
1414

15-
#ifdef CONFIG_SOC_SERIES_ESP32C3
15+
#ifdef CONFIG_SOC_SERIES_ESP32C2
16+
#define out out.val
17+
#define in in.val
18+
#define out_w1ts out_w1ts.val
19+
#define out_w1tc out_w1tc.val
20+
#elif CONFIG_SOC_SERIES_ESP32C3
1621
/* gpio structs in esp32c3 series are different from xtensa ones */
1722
#define out out.data
1823
#define in in.data

0 commit comments

Comments
 (0)