diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-23 16:56:14 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-31 22:12:55 +1100 |
commit | a5d97f1db95fff3c33fbb69300ad7e31cb6d0dd1 (patch) | |
tree | 39bc206f3845bc0aa2cfb9f685105a52a7c8bf0e /py/persistentcode.h | |
parent | 43f53a2bbd4668dc196ebda5d0ccc1aa37312418 (diff) |
stm32: Add soft timer implementation, using SysTick at 1ms resolution.
This commit adds an implementation of a "software timer" with a 1ms
resolution, using SysTick. It allows unlimited number of concurrent
timers (limited only by memory needed for each timer entry). They can be
one-shot or periodic, and associated with a Python callback.
There is a very small overhead added to the SysTick IRQ, which could be
further optimised in the future, eg by patching SysTick_Handler code
dynamically.
Diffstat (limited to 'py/persistentcode.h')
0 files changed, 0 insertions, 0 deletions