Skip to content

true noInterrupts() interrupts() support #200

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 4 commits into from
May 8, 2015
Merged

true noInterrupts() interrupts() support #200

merged 4 commits into from
May 8, 2015

Conversation

Makuna
Copy link
Collaborator

@Makuna Makuna commented May 7, 2015

replaces #192
This will expose the inherent cpu instruction cycle count, which is handy for bit bang timing.
Further, this fixes the interrupts() and noInterrupts() routines to honor original intent.

Due to the priority interrupt system on the chip, it supports the ability to suppress interrupts at different levels. The levels are from 0 to 14, where most are on 0, but some of the WiFi is done on 14.

The current implementation of noInterrupts() doesn't block level 14 interrupts, causing routines that rely on not being interrupted to malfunction. This change will honor the original intent of noInterrupts().

This was refactored to expose the ability to change the level of interrupt suppressing by using the ex_disable_interrupts macro directly (advanced user)

Makuna added 3 commits May 6, 2015 08:42
plus expose cycle count for bit bang timing
due to the rsil requirement that the level be a constant, the method was
moved into a macro
igrr added a commit that referenced this pull request May 8, 2015
true noInterrupts() interrupts() support
@igrr igrr merged commit 405356f into esp8266:esp8266 May 8, 2015
igrr added a commit that referenced this pull request Oct 29, 2015
true noInterrupts() interrupts() support
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.

2 participants