12 #ifndef __usbconfig_h_included__
13 #define __usbconfig_h_included__
31 #define USB_CFG_IOPORTNAME B
35 #define USB_CFG_DMINUS_BIT 1
39 #define USB_CFG_DPLUS_BIT 2
48 #define USB_CFG_CLOCK_KHZ (F_CPU/1000)
55 #define USB_CFG_CHECK_CRC 0
79 #define USB_CFG_HAVE_INTRIN_ENDPOINT 1
84 #define USB_CFG_HAVE_INTRIN_ENDPOINT3 0
90 #define USB_CFG_EP3_NUMBER 3
100 #define USB_CFG_IMPLEMENT_HALT 0
106 #define USB_CFG_SUPPRESS_INTR_CODE 0
114 #define USB_CFG_INTR_POLL_INTERVAL 10
119 #define USB_CFG_IS_SELF_POWERED 0
123 #define USB_CFG_MAX_BUS_POWER 40
128 #define USB_CFG_IMPLEMENT_FN_WRITE 0
133 #define USB_CFG_IMPLEMENT_FN_READ 0
139 #define USB_CFG_IMPLEMENT_FN_WRITEOUT 0
145 #define USB_CFG_HAVE_FLOWCONTROL 0
150 #define USB_CFG_LONG_TRANSFERS 0
167 #ifndef __ASSEMBLER__
168 #include <avr/interrupt.h>
171 #define USB_RESET_HOOK(resetStarts) if(!resetStarts){cli(); calibrateOscillator(); sei();}
177 #define USB_COUNT_SOF 1
201 #define USB_CFG_CHECK_DATA_TOGGLING 0
209 #define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 1
213 #define USB_USE_FAST_CRC 1
224 #define USB_CFG_VENDOR_ID 0xc0, 0x16
233 #define USB_CFG_DEVICE_ID 0xdc, 0x27
244 #define USB_CFG_DEVICE_VERSION 0x00, 0x01
247 #define USB_CFG_VENDOR_NAME 'M','.','L','i','n','d','e','r'
248 #define USB_CFG_VENDOR_NAME_LEN 8
257 #define USB_CFG_DEVICE_NAME '2', 'x', ' ', 'N', '6', '4', ' ', '-', '>', ' ','U','S','B'
258 #define USB_CFG_DEVICE_NAME_LEN 13
263 #define USB_CFG_SERIAL_NUMBER 'm', 'a', 't', 't', 'h', 'i', 'a', 's', 'l', 'i', 'n', 'd', 'e', 'r', '.', 'c', 'o', 'm', ':', 'n', '6', '4', '-', '1'
264 #define USB_CFG_SERIAL_NUMBER_LEN 24
272 #define USB_CFG_DEVICE_CLASS 0
273 #define USB_CFG_DEVICE_SUBCLASS 0
277 #define USB_CFG_INTERFACE_CLASS 0x03
278 #define USB_CFG_INTERFACE_SUBCLASS 0
279 #define USB_CFG_INTERFACE_PROTOCOL 0
285 #define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 94
352 #define USB_CFG_DESCR_PROPS_DEVICE 0
353 #define USB_CFG_DESCR_PROPS_CONFIGURATION 0
354 #define USB_CFG_DESCR_PROPS_STRINGS 0
355 #define USB_CFG_DESCR_PROPS_STRING_0 0
356 #define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
357 #define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
358 #define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
359 #define USB_CFG_DESCR_PROPS_HID 0
360 #define USB_CFG_DESCR_PROPS_HID_REPORT 0
361 #define USB_CFG_DESCR_PROPS_UNKNOWN 0
void calibrateOscillator(void)
Definition: osccal.c:24