summaryrefslogtreecommitdiffstatshomepage
path: root/tests/misc/recursion.py
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2025-04-22 17:42:29 +0200
committerDamien George <damien@micropython.org>2025-06-05 16:39:13 +1000
commit2c2f0b292afbeb41a23a742c3cd74a714e9c03c0 (patch)
tree84ae4308e60787acdb294725fe14a85674d0d18c /tests/misc/recursion.py
parentbf909303ffaf64140f69f2c4696fad82dec01d9f (diff)
downloadmicropython-2c2f0b292afbeb41a23a742c3cd74a714e9c03c0.tar.gz
micropython-2c2f0b292afbeb41a23a742c3cd74a714e9c03c0.zip
esp32: Re-use allocated timer interrupts and simplify UART timer code.
If the interrupt is not freed but merely disabled, instead of reallocating it every time the timer is enabled again we can instead just re-enable it. That means we're no longer setting the handler every time, and we need to ensure it does not change. Doing so by adding an additional wrapper function does not only solve that problem, it also allows us to remove some code duplication and simplify how machine_uart uses the timer. Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'tests/misc/recursion.py')
0 files changed, 0 insertions, 0 deletions