Add definitions for yield() and optimistic_yield()

Fixes: https://github.com/espressif/arduino-esp32/issues/54
This commit is contained in:
me-no-dev 2016-11-16 17:36:52 +02:00
parent 56cd8f63f0
commit 6d097cd4b5

View File

@ -33,6 +33,11 @@ extern "C" {
#include <string.h>
#include <math.h>
//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")