2025-05-21 11:31:07 +08:00

62 lines
1.8 KiB
C

#ifndef __BSP_DBG_UART_H__
#define __BSP_DBG_UART_H__
/*----------------------------------------------*
* 包含头文件 *
*----------------------------------------------*/
#include <stdlib.h>
//#include "hc32_ll.h"
#include "cola_device.h"
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 枚举定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 结构体定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 函数原型说明 *
*----------------------------------------------*/
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
extern int bsp_dbg_uart_close(cola_device_t *dev);
extern void bsp_dbg_uart_configuration(void);
extern void bsp_dbg_uart_deinit_uart(void);
extern void bsp_dbg_uart_init_uart(void);
extern int bsp_dbg_uart_open(cola_device_t *dev, int oflag);
extern int bsp_dbg_uart_read(cola_device_t *dev, int pos, void *buffer, int size);
extern void bsp_dbg_uart_rx_error_irq_callback(void);
extern int bsp_dbg_uart_write(cola_device_t *dev, int pos, const void *buffer, int size);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __BSP_DBG_UART_H__ */