Skip to content

Commit ddf3291

Browse files
author
Raffael Rostagno
committed
drivers: pinctrl: esp32h2: Add support
Add pinctrl support for ESP32-H2. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 15bce42 commit ddf3291

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/pinctrl/pinctrl_esp32.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
/* Include esp-idf headers first to avoid redefining BIT() macro */
8+
#include <stddef.h>
89
#include <hal/gpio_ll.h>
910
#include <hal/rtc_io_hal.h>
1011

@@ -23,8 +24,8 @@
2324
#define in in.data
2425
#define out_w1ts out_w1ts.val
2526
#define out_w1tc out_w1tc.val
26-
#elif CONFIG_SOC_SERIES_ESP32C6
27-
/* gpio structs in esp32c6 are also different */
27+
#elif defined(CONFIG_SOC_SERIES_ESP32C6) || defined(CONFIG_SOC_SERIES_ESP32H2)
28+
/* gpio structs in esp32c6/h2 are also different */
2829
#define out out.out_data_orig
2930
#define in in.in_data_next
3031
#define out_w1ts out_w1ts.val

0 commit comments

Comments
 (0)