From 459ebff4ff42c78e768b652accd6ddd26df27a17 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Fri, 10 Feb 2023 10:28:27 -0300 Subject: [PATCH] esp_hw_support: Fix check for SOC_MODEM_CLOCK_IS_INDEPENDENT definition Signed-off-by: Gustavo Henrique Nihei --- .../esp_hw_support/include/esp_private/esp_modem_clock.h | 3 ++- components/esp_hw_support/periph_ctrl.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/esp_hw_support/include/esp_private/esp_modem_clock.h b/components/esp_hw_support/include/esp_private/esp_modem_clock.h index 8b406550c6..bc678e039c 100644 --- a/components/esp_hw_support/include/esp_private/esp_modem_clock.h +++ b/components/esp_hw_support/include/esp_private/esp_modem_clock.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -10,6 +10,7 @@ #include #include +#include "soc/soc_caps.h" #include "soc/periph_defs.h" #include "hal/modem_clock_types.h" diff --git a/components/esp_hw_support/periph_ctrl.c b/components/esp_hw_support/periph_ctrl.c index c4e9a36742..032ce8a9ee 100644 --- a/components/esp_hw_support/periph_ctrl.c +++ b/components/esp_hw_support/periph_ctrl.c @@ -7,6 +7,7 @@ #include "hal/clk_gate_ll.h" #include "esp_attr.h" #include "esp_private/periph_ctrl.h" +#include "soc/soc_caps.h" #if SOC_MODEM_CLOCK_IS_INDEPENDENT #include "esp_private/esp_modem_clock.h"