From 0dec7d0885970a7d73468dd77220bae78e161b40 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 28 Jun 2016 17:11:38 -0700 Subject: [PATCH] altos/stm: remove ao_dma_abort This function isn't used anywhere. Signed-off-by: Keith Packard --- src/stm/ao_arch_funcs.h | 3 --- src/stm/ao_dma_stm.c | 7 ------- 2 files changed, 10 deletions(-) diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h index 33359857..25b43587 100644 --- a/src/stm/ao_arch_funcs.h +++ b/src/stm/ao_arch_funcs.h @@ -249,9 +249,6 @@ ao_dma_start(uint8_t index); void ao_dma_done_transfer(uint8_t index); -void -ao_dma_abort(uint8_t index); - void ao_dma_alloc(uint8_t index); diff --git a/src/stm/ao_dma_stm.c b/src/stm/ao_dma_stm.c index 8379a1a5..298a15b5 100644 --- a/src/stm/ao_dma_stm.c +++ b/src/stm/ao_dma_stm.c @@ -105,13 +105,6 @@ ao_dma_done_transfer(uint8_t index) ao_mutex_put(&ao_dma_mutex[index]); } -void -ao_dma_abort(uint8_t index) -{ - stm_dma.channel[index].ccr &= ~(1 << STM_DMA_CCR_EN); - ao_wakeup(&ao_dma_done[index]); -} - void ao_dma_alloc(uint8_t index) { -- 2.30.2