mbed-os/TESTS/mbed_hal
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
..
common_tickers Fix tests to work with LPTICKER_DELAY_TICKS 2018-08-17 11:58:55 -05:00
common_tickers_freq Fix rollover handling in ticker frequency test 2018-08-17 11:59:01 -05:00
crc crc test: manual fix cases 2018-08-03 11:24:31 +01:00
critical_section tests: astyle fix 2018-08-03 10:23:38 +01:00
flash/functional_tests tests: astyle fix 2018-08-03 10:23:38 +01:00
lp_ticker Fix tests to work with LPTICKER_DELAY_TICKS 2018-08-17 11:58:55 -05:00
rtc Update deep sleep lock check in tests 2018-08-17 09:29:41 -05:00
rtc_reset tests: astyle fix 2018-08-03 10:23:38 +01:00
rtc_time tests: astyle fix 2018-08-03 10:23:38 +01:00
rtc_time_conv tests: astyle fix 2018-08-03 10:23:38 +01:00
sleep Fix tests to work with LPTICKER_DELAY_TICKS 2018-08-17 11:58:55 -05:00
sleep_manager Update deep sleep lock check in tests 2018-08-17 09:29:41 -05:00
sleep_manager_racecondition Update deep sleep lock check in tests 2018-08-17 09:29:41 -05:00
ticker Add test for ticker suspend and resume 2018-08-17 09:29:40 -05:00
us_ticker tests: astyle fix 2018-08-03 10:23:38 +01:00