fix(freertos): compilation warning in non-IDF environments (#7221)

This commit is contained in:
Dozingfiretruck
2024-11-06 20:42:11 +08:00
committed by GitHub
parent c5f8f5f63e
commit 8d648181d1
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ static void prvTestAndDecrement(lv_thread_sync_t * pxCond,
* STATIC VARIABLES
**********************/
#if (ESP_PLATFORM)
#ifdef ESP_PLATFORM
static portMUX_TYPE critSectionMux = portMUX_INITIALIZER_UNLOCKED;
#endif
@@ -69,7 +69,7 @@ static void prvTestAndDecrement(lv_thread_sync_t * pxCond,
* MACROS
**********************/
#if (ESP_PLATFORM)
#ifdef ESP_PLATFORM
#define _enter_critical() taskENTER_CRITICAL(&critSectionMux);
#define _exit_critical() taskEXIT_CRITICAL(&critSectionMux);
#define _enter_critical_isr() taskENTER_CRITICAL_FROM_ISR();

View File

@@ -23,7 +23,7 @@ extern "C" {
#if LV_USE_OS == LV_OS_FREERTOS
#if (ESP_PLATFORM)
#ifdef ESP_PLATFORM
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"