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

Scheduled functions: schedule_recurrent_function_us() should be in iram #7713

Merged
merged 1 commit into from
Nov 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
schedule_recurrent_function_us should be in iram
  • Loading branch information
d-a-v committed Nov 19, 2020
commit 394dc55fc6d0fa20bbc139f24c26dfd45cb05a5f
1 change: 1 addition & 0 deletions cores/esp8266/Schedule.cpp
Original file line number Diff line number Diff line change
@@ -102,6 +102,7 @@ bool schedule_function(const std::function<void(void)>& fn)
return true;
}

IRAM_ATTR // (not only) called from ISR
bool schedule_recurrent_function_us(const std::function<bool(void)>& fn,
uint32_t repeat_us, const std::function<bool(void)>& alarm)
{