altos/stm: remove ao_dma_abort
authorKeith Packard <keithp@keithp.com>
Wed, 29 Jun 2016 00:11:38 +0000 (17:11 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000 (19:17 -0700)
This function isn't used anywhere.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_arch_funcs.h
src/stm/ao_dma_stm.c

index 33359857041f2c6f1f4dff4a0509f4d0b6b2cee6..25b435879b3fbab71e5625b3a2ddebaaf2586fca 100644 (file)
@@ -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);
 
index 8379a1a533ca0ec5e19321910b1a9975a952f744..298a15b5ce58bdd4d67fbe69293c96d22e4dcbc3 100644 (file)
@@ -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)
 {