From 0574f463bb40281fe4843630839cfa80ec210310 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 11 Aug 2022 16:34:24 +0200 Subject: [PATCH] cpu/esp_common/freertos: changes required for BLE --- cpu/esp8266/vendor/esp-idf/esp8266/source/esp_wifi_os_adapter.c | 1 - cpu/esp_common/include/freertos/portmacro.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/esp8266/vendor/esp-idf/esp8266/source/esp_wifi_os_adapter.c b/cpu/esp8266/vendor/esp-idf/esp8266/source/esp_wifi_os_adapter.c index 35eb8f150e..aeee1ef443 100644 --- a/cpu/esp8266/vendor/esp-idf/esp8266/source/esp_wifi_os_adapter.c +++ b/cpu/esp8266/vendor/esp-idf/esp8266/source/esp_wifi_os_adapter.c @@ -42,7 +42,6 @@ extern void vPortYield(void); extern void vPortYieldFromInt(void); -#define portYIELD vPortYield void thread_yield_higher(void); #endif /* RIOT_VERSION */ diff --git a/cpu/esp_common/include/freertos/portmacro.h b/cpu/esp_common/include/freertos/portmacro.h index 0c73219994..cfa036ab3b 100644 --- a/cpu/esp_common/include/freertos/portmacro.h +++ b/cpu/esp_common/include/freertos/portmacro.h @@ -39,6 +39,7 @@ extern "C" { #define portMUX_INITIALIZE mutex_init #define portMUX_INITIALIZER_UNLOCKED MUTEX_INIT +#define portYIELD thread_yield_higher #define portYIELD_FROM_ISR thread_yield_higher #define portENTER_CRITICAL vTaskEnterCritical @@ -64,6 +65,7 @@ extern "C" { #define portNUM_PROCESSORS 1 #define xPortGetCoreID() PRO_CPU_NUM +#define vPortYield portYIELD #endif /* defined(CPU_FAM_ESP32) || defined(CPU_FAM_ESP32S3) */