Skip to content

Mark esp_schedule IRAM_ATTR to make it ISR safe #6809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 20, 2019

Conversation

dok-net
Copy link
Contributor

@dok-net dok-net commented Nov 19, 2019

Caveat: This may be due to my ignorance of ESP8266 SYS/CONT scheduling internals.
Otherwise, though:
This complements the suspend CONT via esp_yield() pattern in esp_delay() for early returning from the delay due to external events. In libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp this is also done from CBs, that are called from tools/sdk/lwip/include/lwip/dns.h, for instance.

…e 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
@dok-net dok-net force-pushed the esp_schedule_from_isr branch from 0d15259 to 6cdc843 Compare November 19, 2019 07:49
@devyte devyte added this to the 2.6.2 milestone Nov 20, 2019
@devyte devyte merged commit 916eb89 into esp8266:master Nov 20, 2019
@dok-net dok-net deleted the esp_schedule_from_isr branch November 20, 2019 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants