Skip to content
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

digitalWrite() in enablePhaseLockedWaveform mode: need IRAM_ATTR on all stopPWM() impls #8048

Merged
merged 1 commit into from
May 17, 2021

Conversation

dok-net
Copy link
Contributor

@dok-net dok-net commented May 17, 2021

Even if a very small function, loading any code from flash while in ISR can and will eventually crash the MCU.
Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work inside ISR.
Fixes #8043

@earlephilhower earlephilhower merged commit 117f163 into esp8266:master May 17, 2021
@dok-net dok-net deleted the stoppwm branch May 17, 2021 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v3.0.0: Calling digitalWrite() inside ISR May Crash Due to Lack of IRAM_ATTR in _stopPWM()
2 participants