mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Mark esp_schedule IRAM_ATTR to make it ISR safe - this complements the suspend CONT via esp_yield pattern in esp_delay for early returning from delay due to external events. In libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp this is done from CBs, that are called from tools/sdk/lwip/include/lwip/dns.h (#6809)
This commit is contained in:
parent
6533be353f
commit
916eb89b07
@ -108,8 +108,7 @@ extern "C" void __esp_yield() {
|
||||
|
||||
extern "C" void esp_yield() __attribute__ ((weak, alias("__esp_yield")));
|
||||
|
||||
extern "C" void esp_schedule() {
|
||||
// always on CONT stack here
|
||||
extern "C" IRAM_ATTR void esp_schedule() {
|
||||
ets_post(LOOP_TASK_PRIORITY, 0, 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user