bsp/atsam: Fix DMA support of some drivers

This commit is contained in:
Sebastian Huber
2017-03-22 10:38:27 +01:00
parent d50ab07938
commit c4b058ca48
3 changed files with 3 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ uint32_t Afe_ConfigureDma(AfeDma *pAfed ,
pAfed->semaphore = 1;
pAfed->pCurrentCommand = 0;
assert(pXdmad == &XDMAD_Instance);
pAfed->pXdmad = pXdmad;
return 0;
}

View File

@@ -194,6 +194,7 @@ uint32_t Dac_ConfigureDma(DacDma *pDacd ,
pDacd->semaphore = 1;
pDacd->pCurrentCommand = 0;
assert(pXdmad == &XDMAD_Instance);
pDacd->pXdmad = pXdmad;
return 0;
}

View File

@@ -289,6 +289,7 @@ uint32_t SPID_Configure(Spid *pSpid ,
pSpid->semaphore = 1;
pSpid->pCurrentCommand = 0;
assert(pXdmad == &XDMAD_Instance);
pSpid->pXdmad = pXdmad;
/* Enable the SPI Peripheral ,Execute a software reset of the SPI,
Configure SPI in Master Mode*/