]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/timer_dma.c
Misc debugging
[~andy/csm213a-hw] / hw2 / timer_dma.c
index 7d06bac50e49cc7ad84c42e6ef1acc2225c0f538..9a803acc7ef4f41821ff0e0a5f940c478ad5aebf 100644 (file)
@@ -167,7 +167,7 @@ void tdma_stop(tdma_t *port, int wait)
 \r
        for (int i = 0; port->dma->dsr & DMA_DSR_BCR_BCR_MASK; i++)\r
                if (i > wait)\r
-                       return 0;\r
+                       return;\r
 \r
        // Disable DMA Mux\r
        port->mux->cfg &= DMAMUX_CHCFG_ENBL_MASK;\r