Fix SAM bug: Parmaters reversed in DMA function call

This commit is contained in:
Gregory Nutt 2013-08-06 15:47:09 -06:00
parent d1da100cf0
commit 159635bc2a
4 changed files with 9 additions and 9 deletions

View File

@ -903,7 +903,7 @@ static int sam_rxbuffer(struct sam_dma_s *dmach, uint32_t paddr,
ctrlb = sam_rxctrlb(dmach);
}
ctrla = sam_rxctrla(dmach, regval, nbytes);
ctrla = sam_rxctrla(dmach, nbytes, regval);
/* Add the new link list entry */
@ -1159,7 +1159,7 @@ static int sam_dmainterrupt(int irq, void *context)
void weak_function up_dmainitialize(void)
{
dmallvdbg("Iinitialize DMAC0\n");
dmallvdbg("Initialize DMAC0\n");
/* Enable peripheral clock */

View File

@ -1158,7 +1158,7 @@ static int sam_rxbuffer(struct sam_dmach_s *dmach, uint32_t paddr,
ctrlb = sam_rxctrlb(dmach);
}
ctrla = sam_rxctrla(dmach, regval, nbytes);
ctrla = sam_rxctrla(dmach, nbytes, regval);
/* Add the new link list entry */
@ -1480,7 +1480,7 @@ void sam_dmainitialize(struct sam_dmac_s *dmac)
void weak_function up_dmainitialize(void)
{
#ifdef CONFIG_SAMA5_DMAC0
dmallvdbg("Iinitialize DMAC0\n");
dmallvdbg("Initialize DMAC0\n");
/* Enable peripheral clock */
@ -1500,7 +1500,7 @@ void weak_function up_dmainitialize(void)
#endif
#ifdef CONFIG_SAMA5_DMAC1
dmallvdbg("Iinitialize DMAC1\n");
dmallvdbg("Initialize DMAC1\n");
/* Enable peripheral clock */