altos/stm: Increase MISO DMA priority to very high
authorKeith Packard <keithp@keithp.com>
Wed, 29 Jul 2020 06:40:36 +0000 (23:40 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jul 2020 18:06:50 +0000 (11:06 -0700)
We're still losing incoming bytes in full duplex mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_spi_stm.c

index 1a04a2899a825afa758726d5625d3c11a7536c34..0215f03ebd6a56bf173c16e16e8c0a53cd008955 100644 (file)
@@ -116,7 +116,7 @@ ao_spi_set_dma_miso(uint8_t id, void *data, uint16_t len, uint32_t minc)
                            data,
                            len,
                            (0 << STM_DMA_CCR_MEM2MEM) |
-                           (STM_DMA_CCR_PL_HIGH << STM_DMA_CCR_PL) |
+                           (STM_DMA_CCR_PL_VERY_HIGH << STM_DMA_CCR_PL) |
                            (STM_DMA_CCR_MSIZE_8 << STM_DMA_CCR_MSIZE) |
                            (STM_DMA_CCR_PSIZE_8 << STM_DMA_CCR_PSIZE) |
                            (minc << STM_DMA_CCR_MINC) |