diff options
| author | Damien George <damien@micropython.org> | 2023-11-14 13:19:31 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-11-29 16:17:12 +1100 |
| commit | 516cc280e03b35469096db5f7de141a1018a185f (patch) | |
| tree | d6d401975d5070dc55d0e9673757fca5ed26c620 /py/objint.c | |
| parent | 9c7067d9ad91a303389ec0add306bedac55e18f9 (diff) | |
shared/runtime/softtimer: Generalise soft_timer to work without SysTick.
If a port defines MICROPY_SOFT_TIMER_TICKS_MS then soft_timer assumes a
SysTick back end, and provides a soft_timer_next variable that sets when
the next call to soft_timer_handler() should occur.
Otherwise, a port should provide soft_timer_get_ms() and
soft_timer_schedule_at_ms() with appropriate semantics (see comments).
Existing users of soft_timer should continue to work as they did.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/objint.c')
0 files changed, 0 insertions, 0 deletions
