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

Fix hw_timer1_read() for esp32 #2701

Merged
merged 1 commit into from
Jan 9, 2024
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
3 changes: 2 additions & 1 deletion Sming/Arch/Esp32/Components/driver/hw_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class TimerConfig
timer_ll_get_counter_value(dev, index, &val);
return val;
#else
timer_ll_trigger_soft_capture(dev, index);
return timer_ll_get_counter_value(dev, index);
#endif
}
Expand Down Expand Up @@ -214,7 +215,7 @@ void IRAM_ATTR hw_timer1_disable(void)
timer.enable_counter(false);
}

uint32_t hw_timer1_read(void)
uint32_t IRAM_ATTR hw_timer1_read(void)
{
return timer.get_counter_value();
}
Expand Down
Loading