forked from Imagelibrary/rtems
bsp/atsam: Fix DMA support of some drivers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user