#pragma once #include #include #include #include #include "setup.h" #define ws_usb_printf(fmt, ...) { \ char temp[255]; \ sprintf(temp, fmt, ##__VA_ARGS__); \ HAL_UART_Transmit(&huart2, (uint8_t*) temp, sizeof(char) * strlen(temp), HAL_MAX_DELAY); \ }