mirror of https://github.com/ARMmbed/mbed-os.git
Ensure tests use the new method.
parent
61b1482b12
commit
80cdc3e625
|
@ -146,7 +146,7 @@ void test_detach(void)
|
|||
const uint32_t wait_time_ms = 500;
|
||||
Semaphore sem(0, 1);
|
||||
|
||||
ticker.attach(callback(sem_release, &sem), ticker_time_s);
|
||||
ticker.attach_s(callback(sem_release, &sem), ticker_time_s);
|
||||
|
||||
sem.acquire();
|
||||
|
||||
|
@ -171,7 +171,7 @@ void test_attach_time(void)
|
|||
|
||||
gtimer.reset();
|
||||
gtimer.start();
|
||||
ticker.attach(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
|
||||
ticker.attach_s(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
|
||||
while (!ticker_callback_flag);
|
||||
ticker.detach();
|
||||
const int time_diff = gtimer.read_us();
|
||||
|
|
|
@ -268,7 +268,7 @@ void test_detach(void)
|
|||
const uint32_t wait_time_ms = 500;
|
||||
Semaphore sem(0, 1);
|
||||
|
||||
ticker.attach(callback(sem_release, &sem), ticker_time_s);
|
||||
ticker.attach_s(callback(sem_release, &sem), ticker_time_s);
|
||||
|
||||
sem.acquire();
|
||||
|
||||
|
@ -293,7 +293,7 @@ void test_attach_time(void)
|
|||
|
||||
gtimer.reset();
|
||||
gtimer.start();
|
||||
ticker.attach(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
|
||||
ticker.attach_s(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
|
||||
while (!ticker_callback_flag);
|
||||
ticker.detach();
|
||||
const int time_diff = gtimer.read_us();
|
||||
|
|
Loading…
Reference in New Issue