stm32:stm32_serial Forgot the -1 on mask

This commit is contained in:
David Sidrane 2017-05-08 03:43:36 +00:00
parent e4b71a06bb
commit b8ef079951

View File

@ -187,7 +187,7 @@
# endif
# define RXDMA_MUTIPLE 4
# define RXDMA_BUFFER_SIZE ((CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE \
+ RXDMA_MUTIPLE) & ~RXDMA_MUTIPLE)
+ RXDMA_MUTIPLE) & ~(RXDMA_MUTIPLE-1))
/* DMA priority */