diff --git a/cores/esp32/esp32-hal.h b/cores/esp32/esp32-hal.h index 331ee42c..69d316f7 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")