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

Feature/interupts fix #774

Merged
merged 2 commits into from
Oct 13, 2016
Merged

Feature/interupts fix #774

merged 2 commits into from
Oct 13, 2016

Conversation

anakod
Copy link
Member

@anakod anakod commented Sep 29, 2016

  1. Correct interrupts disabling implementation (based on http://www.esp8266.com/viewtopic.php?p=16758 forum topic)
  2. Important fix: IRAM_ATTR added to prevent crash on few interrupt callback routines.

@hreintke hreintke added the Ideas label Sep 29, 2016
@slaff
Copy link
Contributor

slaff commented Oct 4, 2016

@anakod This PR looks like a very nice interrupts improvement. Why don't you merge it with the rest of the code?

@hreintke
Copy link
Contributor

hreintke commented Oct 4, 2016

@anakod @slaff
What is the reason for implementing "local interrupt routine" instead of using the ones provided in the SDK.

What is the issue we are solving ?

slaff pushed a commit to slaff/Sming that referenced this pull request Oct 10, 2016
@anakod
Copy link
Member Author

anakod commented Oct 13, 2016

@hreintke, we already have Arduino compatible interrupts. But it wasn't implemented right. Also all functions what can be called from interrupts should have IRAM_ATTR. If not - program will crash sometimes.

@anakod
Copy link
Member Author

anakod commented Oct 13, 2016

@slaff Agree with you, will merge.

@anakod anakod merged commit 4453de5 into develop Oct 13, 2016
@hreintke hreintke removed the Ideas label Oct 13, 2016
@slaff slaff deleted the feature/interupts-fix branch November 4, 2016 10:25
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.

None yet

3 participants