diff --git a/drivers/serial/uart_esp32.c b/drivers/serial/uart_esp32.c index 19669121fd4..cbe60bbfe79 100644 --- a/drivers/serial/uart_esp32.c +++ b/drivers/serial/uart_esp32.c @@ -4,8 +4,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +/* include rom/uart.h (from the esp-dif package) before Z's uart.h so + * that the definition of BIT is not overriden */ #include +#include #include #include