We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d44be2 commit 60a3a4eCopy full SHA for 60a3a4e
hal/tests/TESTS/mbed_hal/common_tickers/main.cpp
@@ -221,9 +221,9 @@ void ticker_interrupt_test(void)
221
uint8_t run_count = 0;
222
const ticker_info_t *p_ticker_info = intf->get_info();
223
224
- overflow_protect();
225
-
226
for (uint32_t i = 0; i < (sizeof(ticker_timeout) / sizeof(uint32_t)); i++) {
+ // If needed, delay until we can run the test without overflowing the ticker.
+ overflow_protect();
227
228
/* Skip timeout if less than max allowed execution time of set_interrupt() - 20 us */
229
if (TICKS_TO_US(ticker_timeout[i], p_ticker_info->frequency) < (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US)) {
0 commit comments