mirror of https://github.com/ARMmbed/mbed-os.git
b6a01de070
Delta calculation from lp_ticker_set_interrupt() function: delta_us = timestamp > now_us ? timestamp - now_us : (uint32_t)((uint64_t)timestamp + 0xFFFFFFFF - now_us); Lets assume that timestam == now_us. Expected delta value should be 0 and in this current version is 0xFFFFFFFF. The following condition: timestamp > now_us should have the following form: timestamp >= now_us Additionally modified us ticker driver to provide the same logic. |
||
---|---|---|
.. | ||
TARGET_K20XX | ||
TARGET_KLXX | ||
TARGET_MCUXpresso_MCUS | ||
mbed_rtx.h |