aboutsummaryrefslogtreecommitdiff
path: root/examples/wasm/src
diff options
context:
space:
mode:
authorAlexandros Liarokapis <[email protected]>2024-06-18 18:42:27 +0300
committerAlexandros Liarokapis <[email protected]>2024-06-23 11:43:50 +0300
commit00ff1409cd34744d7d5f42c6aa099f6088683d3d (patch)
treecd5754ff7bd26ba61a71710ba7447bbd3a901e6b /examples/wasm/src
parentcfe8561550e10d145eb6ef14423a49f78d7ac38e (diff)
Enables half transfer ir when constructing a ReadableDmaRingBuffer
The half transfer irq needs to be enabled in order for the hardware to notify the waker when the transfer is at half. This is needed to ensure no overuns occur when using `ReadableDmaRingBuffer`'s `read_exact`. Otherwise we are only notified when the DMA has completed its cycle and is on its way to start overwriting the data. The docs in the dma_bdma buf module also seem to imply that the half transfer irq must be enabled for proper operation. The only consumers of the `ReadableDmaRingBuffer` api are the sai module and the `RingBufferedUartRx`. The former enables the irq manually when constructing the transfer options while the latter does not. This may also be the cause for #1441.
Diffstat (limited to 'examples/wasm/src')
0 files changed, 0 insertions, 0 deletions