mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
stm32:stm32_serial Forgot the -1 on mask
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user