mirror of https://github.com/ARMmbed/mbed-os.git
tests-mbed_hal-common_tickers_freq : correct overflowCounter value
parent
d2fff9cab3
commit
26313d8938
|
@ -69,8 +69,6 @@ void ticker_frequency_test()
|
|||
const uint32_t ticker_bits = intf->get_info()->bits;
|
||||
const uint32_t ticker_max = (1 << ticker_bits) - 1;
|
||||
|
||||
overflowCounter = 0;
|
||||
|
||||
intf->init();
|
||||
|
||||
/* Detect overflow for tickers with lower counters width. */
|
||||
|
@ -84,6 +82,8 @@ void ticker_frequency_test()
|
|||
expected_key = strcmp(_key, "base_time");
|
||||
} while (expected_key);
|
||||
|
||||
overflowCounter = 0;
|
||||
|
||||
const uint32_t begin_ticks = intf->read();
|
||||
|
||||
/* Assume that there was no overflow at this point - we are just after init. */
|
||||
|
|
Loading…
Reference in New Issue