// SPDX-License-Identifier: WTFPL // disable usb function, for test purpose. // use this source instead of source/usb/*.c #include "virtual_com.h" void USB_DeviceStartStop(bool start) {} void USB_DEBUG_printf(const char *format, ...) {} void USB_DeviceApplicationInit(void) {} bool USB_DeviceIsResetting(void) {return false;} bool USB_DeviceIsConnected(void) {return false;} void tick_com_request(void) {} bool isCompressingAMBE = false; volatile int comRecvMMDVMIndexOut = 0; volatile int comRecvMMDVMIndexIn = 0; volatile int comRecvMMDVMFrameCount = 0; #define COM_BUFFER_SIZE (512 * 3) uint8_t usbComSendBuf[COM_BUFFER_SIZE]; #define COM_REQUESTBUFFER_SIZE COM_BUFFER_SIZE volatile uint8_t com_requestbuffer[COM_REQUESTBUFFER_SIZE]; usb_cdc_vcom_struct_t s_cdcVcom;