#ifndef SERIAL_DMA_H #define SERIAL_DMA_H #include #include #ifdef __cplusplus extern "C" { #endif /* Setup */ void sdma_setup(UART0_Type *uart, int channel); /* Write */ void sdma_write(void *data, int len); /* print */ void sdma_vprintf(const char *fmt, va_list ap); void sdma_printf(const char *fmt, ...); /* Write */ void sdma_flush(void); #ifdef __cplusplus } #endif #endif