summaryrefslogtreecommitdiff
path: root/py/lexer.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-11-14 13:19:31 +1100
committerDamien George <damien@micropython.org>2023-11-29 16:17:12 +1100
commit516cc280e03b35469096db5f7de141a1018a185f (patch)
treed6d401975d5070dc55d0e9673757fca5ed26c620 /py/lexer.c
parent9c7067d9ad91a303389ec0add306bedac55e18f9 (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/lexer.c')
0 files changed, 0 insertions, 0 deletions