From 6d097cd4b5563d880f2306438428497afab84119 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Wed, 16 Nov 2016 17:36:52 +0200 Subject: [PATCH] Add definitions for yield() and optimistic_yield() Fixes: https://github.com/espressif/arduino-esp32/issues/54 --- cores/esp32/esp32-hal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cores/esp32/esp32-hal.h b/cores/esp32/esp32-hal.h index 331ee42cb..69d316f74 100644 --- a/cores/esp32/esp32-hal.h +++ b/cores/esp32/esp32-hal.h @@ -33,6 +33,11 @@ extern "C" { #include #include +//forward declaration from freertos/portmacro.h +void vPortYield( void ); +#define yield() vPortYield() +#define optimistic_yield(u) + #define ESP_REG(addr) *((volatile uint32_t *)(addr)) #define NOP() asm volatile ("nop") -- GitLab