kopia lustrzana https://github.com/micropython/micropython
b1cdb205ec
The previous computation incorrectly assumed that the uint32_t ticks counter MICROPY_SOFT_TIMER_TICKS_MS was in the range [0,0x80000000) where its actually [0,0xffffffff]. This means the diff calculation can be simplified compared to the original implementation copied from utime_mphal.c, which has to deal with a ticks range constrained by the small int range. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> |
||
---|---|---|
.. | ||
gchelper.h | ||
gchelper_generic.c | ||
gchelper_native.c | ||
gchelper_thumb1.s | ||
gchelper_thumb2.s | ||
interrupt_char.c | ||
interrupt_char.h | ||
mpirq.c | ||
mpirq.h | ||
pyexec.c | ||
pyexec.h | ||
semihosting.c | ||
semihosting.h | ||
softtimer.c | ||
softtimer.h | ||
stdout_helpers.c | ||
sys_stdio_mphal.c |