]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/timer_dma.h
Work on second mbed
[~andy/csm213a-hw] / hw2 / timer_dma.h
index cf672d04603f6ccb2a721365ab41ea0f0116740a..c6d276307581c77a473137cb63527e2dce42aa8d 100644 (file)
@@ -27,12 +27,18 @@ typedef struct tdma_t tdma_t;
 void tdma_init(void);
 
 /* Open */
-tdma_t *tdma_open(tdma_chan_t chan, PinName pin, PinMode mode);
+tdma_t *tdma_open(tdma_chan_t chan, int alt, PinName pin, PinMode mode);
 
 /* Flush/Wait */
 void tdma_reset(tdma_t *port);
 int  tdma_stamp(tdma_t *port, uint64_t *time);
 
+/* Time */
+uint64_t tdma_time(void);
+
+/* Debug print */
+void tdma_debug(tdma_t *port);
+
 #ifdef __cplusplus
 }
 #endif