From f21a43b62213c675b9dd3de60956aff3ae6c11d6 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Sun, 21 Jan 2024 08:07:46 -0800 Subject: [PATCH] fix(uart): add missing include for rom/uart.h Without this include it fails to compile with this error: ``` esp/esp-idf-v5.2/components/esp_rom/include/esp32/rom/uart.h:262:32: error: implicit declaration of function 'UART_STATUS_REG' [-Werror=implicit-function-declaration] 262 | status = READ_PERI_REG(UART_STATUS_REG(uart_no)); ``` Merges https://github.com/espressif/esp-idf/pull/13025 --- components/esp_rom/include/esp32/rom/uart.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_rom/include/esp32/rom/uart.h b/components/esp_rom/include/esp32/rom/uart.h index 3bd0d38f48..f2fc8c8cbc 100644 --- a/components/esp_rom/include/esp32/rom/uart.h +++ b/components/esp_rom/include/esp32/rom/uart.h @@ -10,6 +10,7 @@ #include "ets_sys.h" #include "soc/soc.h" #include "soc/uart_periph.h" +#include "soc/uart_reg.h" #ifdef __cplusplus extern "C" {