/****************************************************************************** 版权所有 (C), 2018-2099, Radkil ****************************************************************************** 文 件 名 : bsp_usb.h 版 本 号 : 初稿 作 者 : Radkil 生成日期 : 2026年5月10日星期日 最近修改 : 功能描述 : bsp_usb.c 的头文件 修改历史 : 1.日 期 : 2026年5月10日星期日 作 者 : Radkil 修改内容 : 创建文件 ******************************************************************************/ /*----------------------------------------------* * 外部变量说明 * *----------------------------------------------*/ /*----------------------------------------------* * 外部函数原型说明 * *----------------------------------------------*/ /*----------------------------------------------* * 内部函数原型说明 * *----------------------------------------------*/ /*----------------------------------------------* * 全局变量 * *----------------------------------------------*/ /*----------------------------------------------* * 模块级变量 * *----------------------------------------------*/ /*----------------------------------------------* * 常量定义 * *----------------------------------------------*/ /*----------------------------------------------* * 宏定义 * *----------------------------------------------*/ #ifndef __BSP_USB_H__ #define __BSP_USB_H__ #ifdef __cplusplus #if __cplusplus extern "C"{ #endif #endif /* __cplusplus */ /*==============================================* * include header files * *----------------------------------------------*/ #include "bsp_config.h" #ifdef USE_USB #include "com.h" /*==============================================* * constants or macros define * *----------------------------------------------*/ #define CONFIG_USB_CDC_BUFFER_SIZE 128 /*==============================================* * project-wide global variables * *----------------------------------------------*/ /*==============================================* * routines' or functions' implementations * *----------------------------------------------*/ extern TComCtrl *bsp_usb_init(void); extern void usb_cdc_recv(uint8_t* _pBuffer, uint32_t _iSize); #endif #ifdef __cplusplus #if __cplusplus } #endif #endif /* __cplusplus */ #endif /* __BSP_USB_H__ */