stm32_ota/HARDWARE/USB/usb.h

26 lines
896 B
C
Raw Normal View History

2023-12-15 06:28:06 +00:00
#ifndef __USBx_H
#define __USBx_H
#include "stm32f10x.h"
#include "syslib.h"
/*****************************************
*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD>ⲿʹ<EFBFBD>õij<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
****************************************/
#define USB_COM UART_DEBUG //USBӳ<42><D3B3><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>
extern FrameQueue_s sUsbQueue ; //USB <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֡<EFBFBD><D6A1><EFBFBD>ݻ<EFBFBD><DDBB>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϲ<EFBFBD>ֻ<EFBFBD><D6BB>Ҫ<EFBFBD>ڳ<EFBFBD>ʼ<EFBFBD><CABC>USB<53>󣬴<EFBFBD><F3A3ACB4><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݼ<EFBFBD><DDBC><EFBFBD>
/*****************************************
*<EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
****************************************/
void UsbRecFrameCallback(char *recvBuf, uint16_t recvLen) ; //USB<53><42><EFBFBD><EFBFBD>֡<EFBFBD><D6A1><EFBFBD>ݻص<DDBB><D8B5><EFBFBD><EFBFBD><EFBFBD>
/*****************************************
*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿں<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
****************************************/
extern void UsbInit(uint32_t baudrate) ; //USB<53><42><EFBFBD>ڳ<EFBFBD>ʼ<EFBFBD><CABC>
extern void UsbSendData(char* sendData, uint16_t dataLen) ; //ͨ<><CDA8>USB_COM<4F>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD>dataLen<65><6E><EFBFBD>ȵ<EFBFBD><C8B5><EFBFBD><EFBFBD><EFBFBD> sendData
#endif