[rtems commit] bsp/atsam: Use standard XDMA for QSPI support

Sebastian Huber sebh at rtems.org
Fri Dec 16 12:06:27 UTC 2016


Module:    rtems
Branch:    master
Commit:    4aba8d7986aad6c3e1a42b24c0cfa8a290cb8f80
Changeset: http://git.rtems.org/rtems/commit/?id=4aba8d7986aad6c3e1a42b24c0cfa8a290cb8f80

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 16 13:05:34 2016 +0100

bsp/atsam: Use standard XDMA for QSPI support

---

 c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi_dma.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi_dma.c b/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi_dma.c
index bac5378..12e217e 100644
--- a/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi_dma.c
+++ b/c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi_dma.c
@@ -294,17 +294,9 @@ uint32_t QSPID_Configure(QspiDma_t *pQspidma, QspiMode_t Mode,
 	pQspidma->RxChNum = QSPID_CH_NOT_ENABLED;
 	pQspidma->TxChNum = QSPID_CH_NOT_ENABLED;
 
+	assert(pXdmad == &XDMAD_Instance);
 	pQspidma->pXdmad = pXdmad;
 
-	/* XDMA Driver initialize */
-	XDMAD_Initialize(pQspidma->pXdmad, 0);
-
-	/* Configure and enable interrupt  */
-	NVIC_ClearPendingIRQ(XDMAC_IRQn);
-	NVIC_SetPriority(XDMAC_IRQn , 1);
-	NVIC_EnableIRQ(XDMAC_IRQn);
-
-
 	return QSPI_SUCCESS;
 }
 




More information about the vc mailing list