1 /** 2 * Copyright (c) 2015, Realsil Semiconductor Corporation. All rights reserved. 3 * 4 */ 5 6 #ifndef _TRACE_UART_H_ 7 #define _TRACE_UART_H_ 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 #include <stdio.h> 13 #include <stdbool.h> 14 #include <stdint.h> 15 16 typedef bool (*UART_TX_CB)(void); 17 18 bool trace_uart_init(void); 19 20 bool trace_uart_deinit(void); 21 22 bool trace_uart_tx(uint8_t *p_buf, uint16_t len, UART_TX_CB tx_cb); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29 30