mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
stm32:Serial DMA buffer round off not up
This commit is contained in:
@@ -186,8 +186,10 @@
|
||||
# define CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE 32
|
||||
# endif
|
||||
# define RXDMA_MUTIPLE 4
|
||||
# define RXDMA_MUTIPLE_MASK (RXDMA_MUTIPLE -1)
|
||||
# define RXDMA_BUFFER_SIZE ((CONFIG_STM32_SERIAL_RXDMA_BUFFER_SIZE \
|
||||
+ RXDMA_MUTIPLE) & ~(RXDMA_MUTIPLE-1))
|
||||
+ RXDMA_MUTIPLE_MASK) \
|
||||
& ~RXDMA_MUTIPLE_MASK))
|
||||
|
||||
/* DMA priority */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user