diff --git a/arch/arm/src/samv7/sam_xdmac.c b/arch/arm/src/samv7/sam_xdmac.c index e8d11be887..a125c9a459 100644 --- a/arch/arm/src/samv7/sam_xdmac.c +++ b/arch/arm/src/samv7/sam_xdmac.c @@ -785,7 +785,7 @@ static inline uint32_t sam_txcc(struct sam_xdmach_s *xdmach) /* Look up the DMA channel code for TX: Peripheral is the sink. */ field = sam_sink_channel(xdmach, pid); - regval |= (field << XDMACH_CC_CSIZE_SHIFT); + regval |= (field << XDMACH_CC_PERID_SHIFT); #if 0 /* Not supported */ /* 10. Set SWREQ to use software request (only relevant for a