mbed-os/TESTS/mbed_hal/common_tickers_freq
Russ Butler 00b8e24446 Fix rollover handling in ticker frequency test
To handle timer rollovers the test tests-mbed_hal-common_tickers_freq
calls intf->set_interrupt(0). For this to work correctly the ticker
implementation must fire an interrupt on every rollover event though
intf->set_interrupt(0) was called only once. Whether an interrupt will
fire only once or multiple times is undefined behavior which
cannot be relied upon.

To avoid this undefined behavior this patch continually schedules an
interrupt and performs overflow detection on every read. This also
removes the possibility of race conditions due to overflowCounter
incrementing at the wrong time.
2018-08-17 11:59:01 -05:00
..
main.cpp Fix rollover handling in ticker frequency test 2018-08-17 11:59:01 -05:00
ticker_api_test_freq.h Rename lp_us tests to common and hf to microsecond 2018-05-25 12:20:09 -05:00