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

Compatibility with latest ESP8266 frameworks #6

Open
Martin-Laclaustra opened this issue Feb 5, 2020 · 0 comments
Open

Compatibility with latest ESP8266 frameworks #6

Martin-Laclaustra opened this issue Feb 5, 2020 · 0 comments

Comments

@Martin-Laclaustra
Copy link
Contributor

Now it is required that interrupt routines are declared in cache.
A fix similar to that in rc-switch is needed here:

#if defined(ESP8266) || defined(ESP32)
    // interrupt handler and related code must be in RAM on ESP8266,
    #define RECEIVE_ATTR ICACHE_RAM_ATTR
#else
    #define RECEIVE_ATTR
#endif

and in:

RECEIVE_ATTR void handleInterrupt() {
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

No branches or pull requests

1 participant