Beispiel #1
0
void usb_vcp_send_strn(const char *str, int len) {
#ifdef USE_DEVICE_MODE
    if (usb_device.enabled) {
        usbd_cdc_tx_always(&usb_device.usbd_cdc_itf, (const uint8_t*)str, len);
    }
#endif
}
Beispiel #2
0
void usb_vcp_send_strn(const char *str, int len) {
    if (usb_device.enabled) {
        usbd_cdc_tx_always(&usb_device.usbd_cdc_itf, (const uint8_t*)str, len);
    }
}