|
|
|
|
|
|
|
|
|
|
|
|
|
|
int usb_serial_write(const void *buffer, uint32_t size) |
|
|
int usb_serial_write(const void *buffer, uint32_t size) |
|
|
{ |
|
|
{ |
|
|
|
|
|
uint32_t ret = size; |
|
|
uint32_t len; |
|
|
uint32_t len; |
|
|
uint32_t wait_count; |
|
|
uint32_t wait_count; |
|
|
const uint8_t *src = (const uint8_t *)buffer; |
|
|
const uint8_t *src = (const uint8_t *)buffer; |
|
|
|
|
|
|
|
|
usb_cdc_transmit_flush_timer = TRANSMIT_FLUSH_TIMEOUT; |
|
|
usb_cdc_transmit_flush_timer = TRANSMIT_FLUSH_TIMEOUT; |
|
|
} |
|
|
} |
|
|
tx_noautoflush = 0; |
|
|
tx_noautoflush = 0; |
|
|
return 0; |
|
|
|
|
|
|
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int usb_serial_write_buffer_free(void) |
|
|
int usb_serial_write_buffer_free(void) |