Skip to content

tests-mbed_hal-common_tickers / lp ticker speed test : remove set_interrupt call loop #6459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions TESTS/mbed_hal/common_tickers/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ void ticker_speed_test(void)
counter = NUM_OF_CALLS;
timer.reset();
timer.start();
while (counter--) {
// while (counter--) {
intf->set_interrupt(0);
}
// }
timer.stop();

TEST_ASSERT(timer.read_us() < (NUM_OF_CALLS * (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US)));
TEST_ASSERT(timer.read_us() < (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US));

/* ---- Test fire_interrupt function. ---- */
counter = NUM_OF_CALLS;
Expand Down