]> Pileus Git - ~andy/csm213a-hw/blob - yue/serial_dma.h
Fix whitespace error
[~andy/csm213a-hw] / yue / serial_dma.h
1 #ifndef SERIAL_DMA_H
2 #define SERIAL_DMA_H
3
4 #include <stdarg.h>
5 #include <MKL46Z4.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /* Setup */
12 void sdma_setup(UART0_Type *uart, int channel);
13
14 /* Write */
15 void sdma_write(void *data, int len);
16
17 /* print */
18 void sdma_vprintf(const char *fmt, va_list ap);
19 void sdma_printf(const char *fmt, ...);
20
21 /* Write */
22 void sdma_flush(void);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif