File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
TESTS/mbed_hal/common_tickers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -473,11 +473,14 @@ void ticker_speed_test(void)
473
473
474
474
/* ---- Test fire_interrupt function. ---- */
475
475
counter = NUM_OF_CALLS;
476
+ /* Disable ticker interrupt which would interfere with speed test */
477
+ core_util_critical_section_enter ();
476
478
start = us_ticker_read ();
477
479
while (counter--) {
478
480
intf->fire_interrupt ();
479
481
}
480
482
stop = us_ticker_read ();
483
+ core_util_critical_section_exit ();
481
484
482
485
TEST_ASSERT (diff_us (start, stop, us_ticker_info) < (NUM_OF_CALLS * (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US)));
483
486
@@ -569,7 +572,7 @@ utest::v1::status_t lp_ticker_teardown(const Case *const source, const size_t pa
569
572
570
573
utest::v1::status_t test_setup (const size_t number_of_cases)
571
574
{
572
- GREENTEA_SETUP (30 , " default_auto" );
575
+ GREENTEA_SETUP (80 , " default_auto" );
573
576
return verbose_test_setup_handler (number_of_cases);
574
577
}
575
578
You can’t perform that action at this time.
0 commit comments