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
1 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ extern "C" {
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.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 ESP_REG(addr) *((volatile uint32_t *)(addr))
|
||||||
#define NOP() asm volatile ("nop")
|
#define NOP() asm volatile ("nop")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue