From ac0d50a1315195329c2fce91e816dbaab0841df4 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 8 Dec 2013 13:06:14 -0800 Subject: [PATCH] Remove irrelevant assumption that LLI argument is a pointer to an array. --- firmware/common/sgpio_dma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/common/sgpio_dma.c b/firmware/common/sgpio_dma.c index a47ecd8c..e1e04688 100644 --- a/firmware/common/sgpio_dma.c +++ b/firmware/common/sgpio_dma.c @@ -74,10 +74,10 @@ static void sgpio_dma_enable(const uint_fast8_t channel, const gpdma_lli_t* cons gpdma_channel_interrupt_tc_clear(channel); gpdma_channel_interrupt_error_clear(channel); - GPDMA_CSRCADDR(channel) = (uint32_t)lli[0].csrcaddr; - GPDMA_CDESTADDR(channel) = (uint32_t)lli[0].cdestaddr; - GPDMA_CLLI(channel) = (uint32_t)lli[0].clli; - GPDMA_CCONTROL(channel) = lli[0].ccontrol; + GPDMA_CSRCADDR(channel) = (uint32_t)lli->csrcaddr; + GPDMA_CDESTADDR(channel) = (uint32_t)lli->cdestaddr; + GPDMA_CLLI(channel) = (uint32_t)lli->clli; + GPDMA_CCONTROL(channel) = lli->ccontrol; /* 1: Memory -> Peripheral * 2: Peripheral -> Memory */