stm32_ota/ABM开发板(BOOT源码)/BOOTV2.1/HARDWARE/USB/usb.h
2024-12-17 20:03:43 +08:00

26 lines
896 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __USBx_H
#define __USBx_H
#include "stm32f10x.h"
#include "syslib.h"
/*****************************************
*驱动可供外部使用的常变量
****************************************/
#define USB_COM UART_DEBUG //USB映射的串口
extern FrameQueue_s sUsbQueue ; //USB 接收数据帧数据环形缓冲区上层只需要在初始化USB后处理该缓冲区数据即可
/*****************************************
*内部函数声明
****************************************/
void UsbRecFrameCallback(char *recvBuf, uint16_t recvLen) ; //USB接收帧数据回调函数
/*****************************************
*对外接口函数声明
****************************************/
extern void UsbInit(uint32_t baudrate) ; //USB串口初始化
extern void UsbSendData(char* sendData, uint16_t dataLen) ; //通过USB_COM端口输出dataLen长度的数据 sendData
#endif