stm32:Serial DMA buffer round off not up
This commit is contained in:
parent
c64983dbeb
commit
546e7acb99
@ -186,8 +186,10 @@
|
|||||||
# define CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE 32
|
# define CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE 32
|
||||||
# endif
|
# endif
|
||||||
# define RXDMA_MUTIPLE 4
|
# define RXDMA_MUTIPLE 4
|
||||||
|
# define RXDMA_MUTIPLE_MASK (RXDMA_MUTIPLE -1)
|
||||||
# define RXDMA_BUFFER_SIZE ((CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE \
|
# define RXDMA_BUFFER_SIZE ((CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE \
|
||||||
+ RXDMA_MUTIPLE) & ~(RXDMA_MUTIPLE-1))
|
+ RXDMA_MUTIPLE_MASK) \
|
||||||
|
& ~RXDMA_MUTIPLE_MASK))
|
||||||
|
|
||||||
/* DMA priority */
|
/* DMA priority */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user