stdio hardening + new mutex API (#1224)

* * Harden stdio_usb and stdio in general against deadlocks which could otherwise result from doing printfs from within IRQs
* Add a test for the above
* Add mutex_try_enter_block_until API.
* Make best_effort_wfe_or_timeout not use alarms if called from within IRQ
This commit is contained in:
Graham Sanderson
2023-02-06 16:27:39 -06:00
committed by GitHub
parent 5b467997b2
commit cc169ddd68
9 changed files with 138 additions and 34 deletions

View File

@ -1,6 +1,7 @@
add_subdirectory(pico_test)
add_subdirectory(pico_stdlib_test)
add_subdirectory(pico_stdio_test)
add_subdirectory(pico_time_test)
add_subdirectory(pico_divider_test)
if (PICO_ON_DEVICE)