This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0ca8ae81d0 invert tx and rx in spi_dma_setup
0ca8ae81d0 is described below
commit 0ca8ae81d0889afe4bba77775bff99e2cee1e598
Author: bertrand <[email protected]>
AuthorDate: Sat Dec 2 20:21:29 2023 +0100
invert tx and rx in spi_dma_setup
remove indent sam_spi.c
removed indent
---
arch/arm/src/samd2l2/sam_spi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/src/samd2l2/sam_spi.c b/arch/arm/src/samd2l2/sam_spi.c
index 0e078fcffa..c106018d10 100644
--- a/arch/arm/src/samd2l2/sam_spi.c
+++ b/arch/arm/src/samd2l2/sam_spi.c
@@ -1429,13 +1429,13 @@ static void spi_dma_setup(struct sam_spidev_s *priv)
{
/* Allocate a pair of DMA channels */
- priv->dma_rx = sam_dmachannel(DMACH_FLAG_BEATSIZE_BYTE |
- DMACH_FLAG_MEM_INCREMENT |
- DMACH_FLAG_PERIPH_RXTRIG(priv->dma_rx_trig));
-
priv->dma_tx = sam_dmachannel(DMACH_FLAG_BEATSIZE_BYTE |
DMACH_FLAG_MEM_INCREMENT |
DMACH_FLAG_PERIPH_TXTRIG(priv->dma_tx_trig));
+
+ priv->dma_rx = sam_dmachannel(DMACH_FLAG_BEATSIZE_BYTE |
+ DMACH_FLAG_MEM_INCREMENT |
+ DMACH_FLAG_PERIPH_RXTRIG(priv->dma_rx_trig));
}
#endif