From 0fc8ede2049c8a774735efeeb769b751b8fa9ffe Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 7 Feb 2022 17:44:33 +0800 Subject: [PATCH] freertos: add pm_trace header include --- components/freertos/FreeRTOS-Kernel/portable/port_systick.c | 4 ++++ components/freertos/FreeRTOS-Kernel/portable/riscv/port.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/freertos/FreeRTOS-Kernel/portable/port_systick.c b/components/freertos/FreeRTOS-Kernel/portable/port_systick.c index 75889a8a5e..adfd69b8a7 100644 --- a/components/freertos/FreeRTOS-Kernel/portable/port_systick.c +++ b/components/freertos/FreeRTOS-Kernel/portable/port_systick.c @@ -19,6 +19,10 @@ #include "hal/systimer_ll.h" #endif +#ifdef CONFIG_PM_TRACE +#include "esp_private/pm_trace.h" +#endif //CONFIG_PM_TRACE + BaseType_t xPortSysTickHandler(void); #ifdef CONFIG_FREERTOS_SYSTICK_USES_CCOUNT diff --git a/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c b/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c index 4bfba5ab0e..8a3ca7f606 100644 --- a/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c +++ b/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c @@ -47,7 +47,6 @@ #include "riscv/riscv_interrupts.h" #include "riscv/interrupt.h" #include "esp_private/crosscore_int.h" -#include "esp_private/pm_trace.h" #include "esp_attr.h" #include "esp_system.h" #include "esp_intr_alloc.h"