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) */