Add definitions for yield() and optimistic_yield()
Fixes: https://github.com/espressif/arduino-esp32/issues/54
This commit is contained in:
parent
56cd8f63f0
commit
6d097cd4b5
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user