Skip to content

Commit

Permalink
samv7: add support for USART TX DMA transfers
Browse files Browse the repository at this point in the history
This commit adds support for TX DMA transfers for USART peripheral. Code
refactor in sam_serial.h was also required in order to have correct
defines for all possible cases (both RX and TX DMA used, just one used,
none used).

Signed-off-by: Michal Lenc <[email protected]>
  • Loading branch information
michallenc committed Feb 27, 2024
1 parent 1eaeef5 commit ff9ca3e
Show file tree
Hide file tree
Showing 5 changed files with 460 additions and 52 deletions.
8 changes: 8 additions & 0 deletions arch/arm/src/samv7/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,14 @@ endmenu # SDRAM Configuration
menu "Serial Driver Configuration"
depends on SAMV7_HAVE_USART0 || SAMV7_HAVE_USART1 || SAMV7_HAVE_USART2

config SAMV7_SERIAL_TXDMA_BUFFER
int "Tx DMA buffer size"
default 128
range 32 4096
depends on SAMV7_HAVE_USART0 || SAMV7_HAVE_USART1 || SAMV7_HAVE_USART2
---help---
The DMA buffer size when using TX DMA to emulate a FIFO.

config SAMV7_SERIAL_RXDMA_BUFFER
int "Rx DMA buffer size"
default 128
Expand Down
Loading

0 comments on commit ff9ca3e

Please sign in to comment.