fix(freertos): compilation warning in non-IDF environments (#7221)
This commit is contained in:
@@ -61,7 +61,7 @@ static void prvTestAndDecrement(lv_thread_sync_t * pxCond,
|
|||||||
* STATIC VARIABLES
|
* STATIC VARIABLES
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
#if (ESP_PLATFORM)
|
#ifdef ESP_PLATFORM
|
||||||
static portMUX_TYPE critSectionMux = portMUX_INITIALIZER_UNLOCKED;
|
static portMUX_TYPE critSectionMux = portMUX_INITIALIZER_UNLOCKED;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ static void prvTestAndDecrement(lv_thread_sync_t * pxCond,
|
|||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
#if (ESP_PLATFORM)
|
#ifdef ESP_PLATFORM
|
||||||
#define _enter_critical() taskENTER_CRITICAL(&critSectionMux);
|
#define _enter_critical() taskENTER_CRITICAL(&critSectionMux);
|
||||||
#define _exit_critical() taskEXIT_CRITICAL(&critSectionMux);
|
#define _exit_critical() taskEXIT_CRITICAL(&critSectionMux);
|
||||||
#define _enter_critical_isr() taskENTER_CRITICAL_FROM_ISR();
|
#define _enter_critical_isr() taskENTER_CRITICAL_FROM_ISR();
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ extern "C" {
|
|||||||
|
|
||||||
#if LV_USE_OS == LV_OS_FREERTOS
|
#if LV_USE_OS == LV_OS_FREERTOS
|
||||||
|
|
||||||
#if (ESP_PLATFORM)
|
#ifdef ESP_PLATFORM
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
#include "freertos/semphr.h"
|
#include "freertos/semphr.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user