mirror of https://github.com/ARMmbed/mbed-os.git
platform timer: Call timer start in enable
This timer was never started and therefore read_us returned always 0 causing bad timings.pull/8210/head
parent
8f7c0ae18d
commit
a3ec9f3982
|
@ -45,8 +45,8 @@ void platform_timer_enable(void)
|
|||
equeue = mbed_highprio_event_queue();
|
||||
MBED_ASSERT(equeue != NULL);
|
||||
#endif
|
||||
// Prime the SingletonPtrs - can't construct from IRQ/critical section
|
||||
timer.get();
|
||||
timer->start();
|
||||
// Prime the SingletonPtr - can't construct from IRQ/critical section
|
||||
timeout.get();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue