Subversion Repositories group.electronics

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
117 pfowler 1
#ifndef __usbconfig_h_included__
2
#define __usbconfig_h_included__
3
 
4
/* ---------------------------- Hardware Config ---------------------------- */
5
 
6
#define USB_CFG_IOPORTNAME      D
7
#define USB_CFG_DMINUS_BIT      3
8
#define USB_CFG_DPLUS_BIT       2
9
#define USB_CFG_CLOCK_KHZ       (F_CPU/1000)
10
 
11
/* --------------------------- Functional Range ---------------------------- */
12
 
13
#define USB_CFG_HAVE_INTRIN_ENDPOINT    0
14
#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0
15
#define USB_CFG_EP3_NUMBER              3
16
#define USB_CFG_IMPLEMENT_HALT          0
17
#define USB_CFG_SUPPRESS_INTR_CODE      0
18
#define USB_CFG_INTR_POLL_INTERVAL      10
19
#define USB_CFG_IS_SELF_POWERED         0
20
#define USB_CFG_MAX_BUS_POWER           500
21
#define USB_CFG_IMPLEMENT_FN_WRITE      0
22
#define USB_CFG_IMPLEMENT_FN_READ       0
23
#define USB_CFG_IMPLEMENT_FN_WRITEOUT   0
24
#define USB_CFG_HAVE_FLOWCONTROL        0
25
 
26
/* -------------------------- Device Description --------------------------- */
27
 
28
#define  USB_CFG_VENDOR_ID       0x42, 0x42 
29
#define  USB_CFG_DEVICE_ID       0x32, 0xe32
30
#define USB_CFG_DEVICE_VERSION  0x00, 0x03
31
#define USB_CFG_VENDOR_NAME     'n', 'e', 'w', 'i', 'o', 'i', 't', '.', 'c', 'o', 'm', '.', 'a', 'u'
32
#define USB_CFG_VENDOR_NAME_LEN 14
33
#define USB_CFG_DEVICE_NAME     'A', 'T', 'C', ' ', 'P', 'a', 'd'
34
#define USB_CFG_DEVICE_NAME_LEN 7
35
/*#define USB_CFG_SERIAL_NUMBER   'N', 'o', 'n', 'e' */
36
/*#define USB_CFG_SERIAL_NUMBER_LEN   0 */
37
#define USB_CFG_DEVICE_CLASS        0    /* set to 0 if deferred to interface */
38
#define USB_CFG_DEVICE_SUBCLASS     0
39
#define USB_CFG_INTERFACE_CLASS     3   /* HID */
40
#define USB_CFG_INTERFACE_SUBCLASS  0	/* no boot interface */
41
#define USB_CFG_INTERFACE_PROTOCOL  0	/* no protocol */
42
#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    HID_SIZE
43
/* #define USB_PUBLIC static */
44
 
45
#define USB_CFG_DESCR_PROPS_DEVICE                  0
46
#define USB_CFG_DESCR_PROPS_CONFIGURATION           0
47
#define USB_CFG_DESCR_PROPS_STRINGS                 0
48
#define USB_CFG_DESCR_PROPS_STRING_0                0
49
#define USB_CFG_DESCR_PROPS_STRING_VENDOR           0
50
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT          0
51
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER    0
52
#define USB_CFG_DESCR_PROPS_HID                     0
53
#define USB_CFG_DESCR_PROPS_HID_REPORT              0
54
#define USB_CFG_DESCR_PROPS_UNKNOWN                 0
55
 
56
/* ----------------------- Optional MCU Description ------------------------ */
57
 
58
/* #define USB_INTR_CFG            MCUCR */
59
/* #define USB_INTR_CFG_SET        ((1 << ISC00) | (1 << ISC01)) */
60
/* #define USB_INTR_CFG_CLR        0 */
61
/* #define USB_INTR_ENABLE         GIMSK */
62
/* #define USB_INTR_ENABLE_BIT     INT0 */
63
/* #define USB_INTR_PENDING        GIFR */
64
/* #define USB_INTR_PENDING_BIT    INTF0 */
65
/* #define USB_INTR_VECTOR         INT0_vect */
66
 
67
#endif /* __usbconfig_h_included__ */