summaryrefslogtreecommitdiff
path: root/examples/rp2/pio_exec.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-02-03 18:04:56 +1100
committerDamien George <damien@micropython.org>2023-02-07 14:52:36 +1100
commit0afe60b876e20684cc0313922a34ee65e7db898a (patch)
tree5e76c7bd3a9b862d794ddc08574fdfce2d84aa4d /examples/rp2/pio_exec.py
parent9ea64a36acefd593012eedaa8e52bcd2afc0c736 (diff)
rp2/rp2_pio: Track use of PIO resources and free them on soft reset.
Prior to this commit, on Pico W (where the CYW43 driver is enabled) the PIO instruction memory was not released on soft reset, so using PIO after a soft reset would eventually (after a few soft resets) lead to ENOMEM when allocating a PIO program. This commit fixes that by tracking the use of PIO memory by this module and freeing it on soft reset. Similarly, use of the state machines themselves are tracked and released on soft reset. Fixes issue #9003. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'examples/rp2/pio_exec.py')
0 files changed, 0 insertions, 0 deletions