Correct core RTOS sleep routine timing
Chrono conversions inadvertantly changed the core timed sleep routine used by the RTOS idle to use `OsTimer::update_and_get_tick()` instead of `OsTimer::get_tick()`. Correct this, and expand/clarify documentation and naming to try to prevent recurrence. Another minor fix observed while inspecting code - `OsClock` can't just use `milliseconds`, it should match the period of `OsTimer`, which theoretically can be different. |
---|
|
platform/source/mbed_os_timer.cpp |
---|
platform/source/mbed_os_timer.h |
---|
rtos/source/TARGET_CORTEX/mbed_rtx_idle.cpp |
---|