MAV'RIC
|
00001 00039 #ifndef _CONF_USB_H_ 00040 #define _CONF_USB_H_ 00041 00042 #ifdef __cplusplus 00043 extern "C" 00044 { 00045 #endif 00046 00047 00048 #include "libs/asf/avr32/utils/compiler.h" 00049 00050 //#warning You must refill the following definitions with a correct values 00051 00057 00058 #define USB_DEVICE_VENDOR_ID USB_VID_ATMEL 00059 #define USB_DEVICE_PRODUCT_ID USB_PID_ATMEL_AVR_CDC 00060 #define USB_DEVICE_MAJOR_VERSION 1 00061 #define USB_DEVICE_MINOR_VERSION 0 00062 #define USB_DEVICE_POWER 100 // Consumption on Vbus line (mA) 00063 #define USB_DEVICE_MANUFACTURE_NAME "ATMEL AVR" 00064 #define USB_DEVICE_PRODUCT_NAME "CDC" 00065 00066 #define USB_DEVICE_ATTR \ 00067 (USB_CONFIG_ATTR_SELF_POWERED) 00068 // (USB_CONFIG_ATTR_BUS_POWERED) 00069 // (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_SELF_POWERED) 00070 // (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_BUS_POWERED) 00071 00073 //#define USB_DEVICE_MANUFACTURE_NAME "EPFL" 00074 //#define USB_DEVICE_PRODUCT_NAME "4ch audio sampling board" 00075 // #define USB_DEVICE_SERIAL_NAME "12...EF" 00076 00077 00083 00084 #if (UC3A3||UC3A4) 00085 //#define USB_DEVICE_HS_SUPPORT 00086 #endif 00087 00088 00089 00094 #define UDC_VBUS_EVENT(b_vbus_high) stdio_usb_vbus_event(b_vbus_high) 00095 #define UDC_SOF_EVENT() 00096 #define UDC_SUSPEND_EVENT() 00097 #define UDC_RESUME_EVENT() 00098 00099 // #define UDC_VBUS_EVENT(b_vbus_high) user_callback_vbus_action(b_vbus_high) 00100 // #define UDC_SOF_EVENT() user_callback_sof_action() 00101 // #define UDC_SUSPEND_EVENT() user_callback_suspend_action() 00102 // #define UDC_RESUME_EVENT() user_callback_resume_action() 00104 // #define UDC_REMOTEWAKEUP_ENABLE() user_callback_remotewakeup_enable() 00105 // #define UDC_REMOTEWAKEUP_DISABLE() user_callback_remotewakeup_disable() 00108 // #define UDC_GET_EXTRA_STRING() 00110 00112 00113 00122 00123 #define UDI_CDC_ENABLE_EXT() stdio_usb_enable() 00124 #define UDI_CDC_DISABLE_EXT() stdio_usb_disable() 00125 #define UDI_CDC_RX_NOTIFY() usb_interupt_rx_notify() // In Serial_usb_avr32() 00126 extern void usb_interupt_rx_notify(void); 00127 #define UDI_CDC_SET_CODING_EXT(cfg) 00128 #define UDI_CDC_SET_DTR_EXT(set) 00129 #define UDI_CDC_SET_RTS_EXT(set) 00130 00133 #define UDI_CDC_LOW_RATE 00134 00136 #define UDI_CDC_DEFAULT_RATE 57600 00137 #define UDI_CDC_DEFAULT_STOPBITS CDC_STOP_BITS_1 00138 #define UDI_CDC_DEFAULT_PARITY CDC_PAR_NONE 00139 #define UDI_CDC_DEFAULT_DATABITS 8 00140 00141 00142 00143 00149 00151 #include "libs/asf/common/services/usb/class/cdc/device/udi_cdc_conf.h" 00152 #include <stdio_usb.h> 00153 00154 #ifdef __cplusplus 00155 } 00156 #endif 00157 00158 #endif // _CONF_USB_H_