Subversion Repositories group.electronics

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
79 pfowler 1
#ifndef __usbconfig_h_included__
2
#define __usbconfig_h_included__
3
 
4
/* ---------------------------- Hardware Config ---------------------------- */
5
 
136 pfowler 6
#define USB_CFG_IOPORTNAME      B
7
#define USB_CFG_DMINUS_BIT      1
79 pfowler 8
#define USB_CFG_DPLUS_BIT       2
9
#define USB_CFG_CLOCK_KHZ       (F_CPU/1000)
10
 
11
/* --------------------------- Functional Range ---------------------------- */
12
 
112 pfowler 13
#define USB_CFG_HAVE_INTRIN_ENDPOINT    0
79 pfowler 14
#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0
136 pfowler 15
#define USB_CFG_EP3_NUMBER              0
79 pfowler 16
#define USB_CFG_IMPLEMENT_HALT          0
17
#define USB_CFG_INTR_POLL_INTERVAL      10
18
#define USB_CFG_IS_SELF_POWERED         0
136 pfowler 19
#define USB_CFG_MAX_BUS_POWER           200
79 pfowler 20
#define USB_CFG_IMPLEMENT_FN_WRITE      0
21
#define USB_CFG_IMPLEMENT_FN_READ       0
22
#define USB_CFG_IMPLEMENT_FN_WRITEOUT   0
23
#define USB_CFG_HAVE_FLOWCONTROL        0
24
 
136 pfowler 25
#ifndef __ASSEMBLER__
26
extern void usbEventResetReady(void);
27
#endif
28
#define USB_RESET_HOOK(isReset)             if(!isReset){usbEventResetReady();}
29
#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   1
79 pfowler 30
 
31
/* -------------------------- Device Description --------------------------- */
32
 
136 pfowler 33
#define  USB_CFG_VENDOR_ID       0xa0, 0x20
34
#define  USB_CFG_DEVICE_ID       0x36, 0x42
86 pfowler 35
#define USB_CFG_DEVICE_VERSION  0x02, 0x00
79 pfowler 36
#define USB_CFG_VENDOR_NAME     'n', 'e', 'w', 'i', 'o', 'i', 't', '.', 'c', 'o', 'm', '.', 'a', 'u'
37
#define USB_CFG_VENDOR_NAME_LEN 14
136 pfowler 38
#define USB_CFG_DEVICE_NAME     'N', 'I', 'T', ' ', 'C', 'o', 'm', 'm', '/', 'N', 'a', 'v'
39
#define USB_CFG_DEVICE_NAME_LEN 12
79 pfowler 40
/*#define USB_CFG_SERIAL_NUMBER   'N', 'o', 'n', 'e' */
41
/*#define USB_CFG_SERIAL_NUMBER_LEN   0 */
42
#define USB_CFG_DEVICE_CLASS        0
43
#define USB_CFG_DEVICE_SUBCLASS     0
136 pfowler 44
#define USB_CFG_INTERFACE_CLASS     0xff
79 pfowler 45
#define USB_CFG_INTERFACE_SUBCLASS  0   /* no boot interface */
46
#define USB_CFG_INTERFACE_PROTOCOL  0   /* no protocol */
112 pfowler 47
//#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    HID_SIZE  /* total length of report descriptor */
79 pfowler 48
/* #define USB_PUBLIC static */
49
 
50
/* ------------------- Fine Control over USB Descriptors ------------------- */
51
 
52
#define USB_CFG_DESCR_PROPS_DEVICE                  0
53
#define USB_CFG_DESCR_PROPS_CONFIGURATION           0
54
#define USB_CFG_DESCR_PROPS_STRINGS                 0
55
#define USB_CFG_DESCR_PROPS_STRING_0                0
56
#define USB_CFG_DESCR_PROPS_STRING_VENDOR           0
57
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT          0
58
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER    0
59
#define USB_CFG_DESCR_PROPS_HID                     0
60
#define USB_CFG_DESCR_PROPS_HID_REPORT              0
61
#define USB_CFG_DESCR_PROPS_UNKNOWN                 0
62
 
63
#endif /* __usbconfig_h_included__ */