From 54ee1628e86cae7fa1c9f97e02d9b45b23cd8ccf Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 11 Apr 2010 15:32:07 +0000 Subject: [PATCH] Add MCI CD GPIO git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2585 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/sam3u/sam3u_dmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/sam3u/sam3u_dmac.c b/arch/arm/src/sam3u/sam3u_dmac.c index 510ac7e8a3a..2084fc67864 100755 --- a/arch/arm/src/sam3u/sam3u_dmac.c +++ b/arch/arm/src/sam3u/sam3u_dmac.c @@ -447,7 +447,7 @@ static inline uint32_t sam3u_rxctrlabits(struct sam3u_dma_s *dmach) uint32_t regval; unsigned int ndx; - DEBUGASSERT(dmach && dmasize <= DMACHAN_CTRLA_BTSIZE_MAX); + DEBUGASSERT(dmach); /* Since this is a receive, the source is described by the peripheral * selections. Set the source width (peripheral width). @@ -748,7 +748,7 @@ sam3u_allocdesc(struct sam3u_dma_s *dmach, struct dma_linklist_s *prev, } else { - DEBUGASSERT(dmach->llhead != NULL && dmach->tail == prev); + DEBUGASSERT(dmach->llhead != NULL && dmach->lltail == prev); /* When the second link is added to the list, that is the * cue that we are going to do the link list transfer.