diff options
Diffstat (limited to 'c/src/lib/libbsp/arm/atsam/libraries/libchip/source/afe_dma.c')
-rw-r--r-- | c/src/lib/libbsp/arm/atsam/libraries/libchip/source/afe_dma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/afe_dma.c b/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/afe_dma.c index b137d0194d..e47055ccde 100644 --- a/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/afe_dma.c +++ b/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/afe_dma.c @@ -103,8 +103,6 @@ static uint8_t _AfeConfigureDmaChannels(AfeDma *pAfed) { /* Driver initialize */ - XDMAD_Initialize(pAfed->pXdmad, 0); - XDMAD_FreeChannel(pAfed->pXdmad, afeDmaRxChannel); /* Allocate a DMA channel for AFE0/1 RX. */ @@ -207,7 +205,7 @@ uint32_t Afe_ConfigureDma(AfeDma *pAfed , pAfed->afeId = AfeId; pAfed->semaphore = 1; pAfed->pCurrentCommand = 0; - pAfed->pXdmad = pXdmad; + assert(pXdmad == &XDMAD_Instance); return 0; } |