circuitpython/ports
Jeff Epler 6253f11503 samd: audio_dma_stop: Clear out audio_dma_state[]
As identified in #1908, when both AudioOut and PDMIn are used, hard
locks can occur.  Because audio_dma_stop didn't clear audio_dma_state[],
a future call to audio_dma_load_next_block could occur using a DMA
object which belongs to PDMIn.

I believe that this Closes: #1908 though perhaps it is still not the full
story.

Testing performed: Loaded a sketch similar to the one on #1908 that
tends to reproduce the bug within ~30s.  Ran for >300s without hard
lock.  HOWEVER, while my cpx is no longer hard locking, it occasionally
(<1 / 200s) announces
    Code done running. Waiting for reload.
(and does so), even though my main loop is surrounded by a 'while True:'
condition, so there are still gremlins nearby.
2019-08-06 21:34:21 -05:00
..
atmel-samd samd: audio_dma_stop: Clear out audio_dma_state[] 2019-08-06 21:34:21 -05:00
bare-arm ports/{bare-arm,minimal}/Makefile: Only build with core source files. 2018-02-22 12:48:51 +11:00
cc3200 WIP: after merge; before testing 2018-07-11 16:45:30 -04:00
esp32 esp32/modules: Include umqtt library in frozen modules. 2018-06-15 16:39:49 +10:00
esp8266 updated samd and esp8266 ports 2019-07-05 10:01:51 -07:00
minimal minimal/main: Allow to compile without GC enabled. 2018-05-21 13:13:21 +10:00
nrf Merge pull request #2039 from dhalbert/metro-52840 2019-08-05 18:48:36 -07:00
pic16bit all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
qemu-arm put back test in qemu-arm build 2018-07-28 23:40:17 -04:00
stm32 WIP: after merge; before testing 2018-07-11 16:45:30 -04:00
stm32f4 Update SystemCoreClock macro 2019-07-24 16:31:25 -04:00
teensy WIP: after merge; before testing 2018-07-11 16:45:30 -04:00
unix Fix unix build by using safe mode stub 2019-03-12 11:56:35 -07:00
windows WIP: after merge; before testing 2018-07-11 16:45:30 -04:00
zephyr zephyr/Makefile: Add kobj_types_h_target to Z_EXPORTS. 2018-05-21 10:35:16 +10:00