From: Keith Packard Date: Wed, 29 Jul 2020 06:40:36 +0000 (-0700) Subject: altos/stm: Increase MISO DMA priority to very high X-Git-Tag: 1.9.5~1^2~62 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=8a24d37e40210b1fb5cdab944c3a6d9ae4e144d7 altos/stm: Increase MISO DMA priority to very high We're still losing incoming bytes in full duplex mode. Signed-off-by: Keith Packard --- diff --git a/src/stm/ao_spi_stm.c b/src/stm/ao_spi_stm.c index 1a04a289..0215f03e 100644 --- a/src/stm/ao_spi_stm.c +++ b/src/stm/ao_spi_stm.c @@ -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) |