File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 21
21
#include <esp32s3/rom/ets_sys.h>
22
22
#include <esp32s3/rom/gpio.h>
23
23
#include <zephyr/dt-bindings/clock/esp32s3_clock.h>
24
+ #elif defined(CONFIG_SOC_SERIES_ESP32C2 )
25
+ #include <esp32c2/rom/ets_sys.h>
26
+ #include <esp32c2/rom/gpio.h>
27
+ #include <zephyr/dt-bindings/clock/esp32c2_clock.h>
24
28
#elif defined(CONFIG_SOC_SERIES_ESP32C3 )
25
29
#include <esp32c3/rom/ets_sys.h>
26
30
#include <esp32c3/rom/gpio.h>
47
51
#include <soc.h>
48
52
#include <zephyr/drivers/uart.h>
49
53
50
- #if defined(CONFIG_SOC_SERIES_ESP32C3 ) || defined(CONFIG_SOC_SERIES_ESP32C6 )
54
+ #if defined(CONFIG_SOC_SERIES_ESP32C2 ) || \
55
+ defined(CONFIG_SOC_SERIES_ESP32C3 ) || \
56
+ defined(CONFIG_SOC_SERIES_ESP32C6 )
51
57
#include <zephyr/drivers/interrupt_controller/intc_esp32c3.h>
52
58
#else
53
59
#include <zephyr/drivers/interrupt_controller/intc_esp32.h>
61
67
62
68
LOG_MODULE_REGISTER (uart_esp32 , CONFIG_UART_LOG_LEVEL );
63
69
64
- #if defined(CONFIG_SOC_SERIES_ESP32C3 ) || defined(CONFIG_SOC_SERIES_ESP32C6 )
70
+ #if defined(CONFIG_SOC_SERIES_ESP32C2 ) || \
71
+ defined(CONFIG_SOC_SERIES_ESP32C3 ) || \
72
+ defined(CONFIG_SOC_SERIES_ESP32C6 )
65
73
#define ISR_HANDLER isr_handler_t
66
74
#else
67
75
#define ISR_HANDLER intr_handler_t
You can’t perform that action at this time.
0 commit comments