Skip to content
Snippets Groups Projects
Unverified Commit 74b9ea4d authored by Graham Sanderson's avatar Graham Sanderson Committed by GitHub
Browse files

use best_effort_wfe_or_timeout instead of wfe (#1404)

parent 778221ba
Branches
No related tags found
No related merge requests found
......@@ -71,8 +71,7 @@ bool multicore_fifo_pop_timeout_us(uint64_t timeout_us, uint32_t *out) {
// If nothing there yet, we wait for an event first,
// to try and avoid too much busy waiting
while (!multicore_fifo_rvalid()) {
__wfe();
if (time_reached(end_time)) return false;
if (best_effort_wfe_or_timeout(end_time)) return false;
}
*out = sio_hw->fifo_rd;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment