pico-sdk/test/pico_time_test
Peter Harper 969f5895aa
ta_set_timeout can fail to set an alarm (#2127)
* ta_set_timeout can fail to set an alarm

If alarm_pool_irq_handler takes <1us between handling an alarm and
calling ta_set_timeout then no alarms will be set as it will appear as
if an earlier alarm is already armedi before the target time.

Make sure ta_set_timeout always leaves with an alarm set by checking the
armed status.

Fixes #2118

* ta_disable_irq_handler should unarm its timer
2024-12-06 10:39:04 -06:00
..
BUILD.bazel SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
CMakeLists.txt Initial Release 2021-01-20 10:44:27 -06:00
pico_time_test.c ta_set_timeout can fail to set an alarm (#2127) 2024-12-06 10:39:04 -06:00