altos: Remove pad_orientation functions from non-accel devices
[fw/altos] / src / ao_dma.c
index 704108e65dcabe90f4b00846dd4b927704cafbd2..6052964a5fb7e323445195488033da1216bb4b7c 100644 (file)
@@ -102,17 +102,15 @@ ao_dma_trigger(uint8_t id)
 }
 
 void
-ao_dma_abort(uint8_t id, uint8_t reason)
+ao_dma_abort(uint8_t id)
 {
        uint8_t mask = (1 << id);
        DMAARM = 0x80 | mask;
        DMAIRQ &= ~mask;
-       *(ao_dma_done[id]) |= reason;
-       ao_wakeup(ao_dma_done[id]);
 }
 
 void
-ao_dma_isr(void) interrupt 8
+ao_dma_isr(void) __interrupt 8
 {
        uint8_t id, mask;
 
@@ -124,7 +122,7 @@ ao_dma_isr(void) interrupt 8
                        DMAIF = 0;
                        /* Clear the completed ID */
                        DMAIRQ = ~mask;
-                       *(ao_dma_done[id]) |= AO_DMA_DONE;
+                       *(ao_dma_done[id]) = 1;
                        ao_wakeup(ao_dma_done[id]);
                        break;
                }