39 #if defined( __cplusplus ) 51 #define USB_DEVICE_VENDOR_ID USB_VID_ATMEL 54 #define USB_DEVICE_PRODUCT_ID 0x6124 // "Bossa Program Port" - This allows us to keep same serial port number when switching to SAM-BA mode 55 #define USB_DEVICE_MAJOR_VERSION 1 56 #define USB_DEVICE_MINOR_VERSION 0 57 #define USB_DEVICE_POWER 100 // Consumption on Vbus line (mA) 58 #define USB_DEVICE_ATTR \ 59 (USB_CONFIG_ATTR_SELF_POWERED) 71 #if 0 // USB device low speed (1.5Mbit/s) 72 #define USB_DEVICE_LOW_SPEED 74 #elif 0 // USB device full speed (12Mbit/s) 77 #else // USB device high speed (480Mbit/s) 79 #define USB_DEVICE_HS_SUPPORT 117 #define UDI_CDC_PORT_NB 1 121 #define UDI_CDC_ENABLE_EXT(port) true 125 #define UDI_CDC_DISABLE_EXT(port) d_usartDMA_callback_cdc_disable() 127 #define UDI_CDC_RX_NOTIFY(port) 130 #define UDI_CDC_TX_EMPTY_NOTIFY(port) 134 #define UDI_CDC_SET_CODING_EXT(port,cfg) callback_cdc_set_config(port,cfg) 137 #define UDI_CDC_SET_DTR_EXT(port,set) callback_cdc_set_dtr(port,set) 139 #define UDI_CDC_SET_RTS_EXT(port,set) 148 #define UDI_CDC_DEFAULT_RATE 921600 149 #define UDI_CDC_DEFAULT_STOPBITS CDC_STOP_BITS_1 150 #define UDI_CDC_DEFAULT_PARITY CDC_PAR_NONE 151 #define UDI_CDC_DEFAULT_DATABITS 8 165 #if defined( __cplusplus ) 168 #endif // _CONF_USB_H_ void callback_cdc_set_dtr(uint8_t port, bool b_enable)
void d_usartDMA_callback_cdc_disable(void)
void callback_cdc_set_config(uint8_t port, usb_cdc_line_coding_t *cfg)
Commonly used includes, types and macros.
Default CDC configuration for a USB Device with a single interface.
USB Communication Device Class (CDC) protocol definitions.