File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
#define DT_DRV_COMPAT espressif_esp32_gpio
9
9
10
10
/* Include esp-idf headers first to avoid redefining BIT() macro */
11
+ #include <stddef.h>
11
12
#include <soc/gpio_reg.h>
12
13
#include <soc/io_mux_reg.h>
13
14
#include <soc/soc.h>
@@ -44,8 +45,8 @@ LOG_MODULE_REGISTER(gpio_esp32, CONFIG_LOG_DEFAULT_LEVEL);
44
45
#define out_w1tc out_w1tc.val
45
46
/* arch_curr_cpu() is not available for riscv based chips */
46
47
#define ESP32_CPU_ID () 0
47
- #elif defined(CONFIG_SOC_SERIES_ESP32C6 )
48
- /* gpio structs in esp32c6 are also different */
48
+ #elif defined(CONFIG_SOC_SERIES_ESP32C6 ) || defined( CONFIG_SOC_SERIES_ESP32H2 )
49
+ /* gpio structs in esp32c6/h2 are also different */
49
50
#define out out.out_data_orig
50
51
#define in in.in_data_next
51
52
#define out_w1ts out_w1ts.val
You can’t perform that action at this time.
0 commit comments