diff options
author | Chris Webb <chris@arachsys.com> | 2025-08-25 14:49:17 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2025-09-25 23:59:24 +1000 |
commit | ccc954256f890b6626558349b513a6d840da24d9 (patch) | |
tree | 75ef48dae254430968f3e86e4c912be5d4bb9ba0 /docs/esp32 | |
parent | 64fd2f5f360bfae4a231fc3db053139a4621e878 (diff) |
tests: Generalise rp2 timer test into a cross-port test.
Now all ports with machine.Timer except nrf support both hard and
soft callbacks, generalise tests/ports/rp2_machine_timer.py into
tests/extmod/machine_timer.py.
There is an existing machine_soft_timer.py which varies period= and
covers the nrf port but skips esp32/esp8266 because they don't support
software timers. In our new test, we try varying freq= instead of period=,
and cover esp32/esp8266 (with a fixed choice of hardware timer) but skip
nrf because it doesn't support hard= or freq=.
Add a check that the heap is locked (so allocation fails) in hard
callbacks and it is unlocked (so allocation succeeds) in soft callbacks,
to ensure we're getting the right kind of callback, not falling back to
the default.
Signed-off-by: Chris Webb <chris@arachsys.com>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions