|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if F_CPU >= 20000000 && !defined(USB_DISABLED) |
|
|
#if F_CPU >= 20000000 && !defined(USB_DISABLED) |
|
|
|
|
|
|
|
|
|
|
|
#include "core_pins.h" // for millis() |
|
|
|
|
|
|
|
|
// C language implementation |
|
|
// C language implementation |
|
|
#ifdef __cplusplus |
|
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
extern "C" { |
|
|
|
|
|
|
|
|
int usb_serial_write(const void *buffer, uint32_t size); |
|
|
int usb_serial_write(const void *buffer, uint32_t size); |
|
|
int usb_serial_write_buffer_free(void); |
|
|
int usb_serial_write_buffer_free(void); |
|
|
void usb_serial_flush_output(void); |
|
|
void usb_serial_flush_output(void); |
|
|
|
|
|
void usb_serial_flush_callback(void); |
|
|
extern uint32_t usb_cdc_line_coding[2]; |
|
|
extern uint32_t usb_cdc_line_coding[2]; |
|
|
extern volatile uint32_t usb_cdc_line_rtsdtr_millis; |
|
|
extern volatile uint32_t usb_cdc_line_rtsdtr_millis; |
|
|
extern volatile uint32_t systick_millis_count; |
|
|
extern volatile uint32_t systick_millis_count; |