Subversion Repositories group.electronics

Rev

Rev 80 | Rev 86 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 85
Line 1... Line -...
1
/* Name: usbconfig.h
-
 
2
 * Project: AVR USB driver
-
 
3
 * Author: Christian Starkjohann
-
 
4
 * Creation Date: 2007-06-23
-
 
5
 * Tabsize: 4
-
 
6
 * Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH
-
 
7
 * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt)
-
 
8
 * This Revision: $Id$
-
 
9
 */
-
 
10
 
-
 
11
#ifndef __usbconfig_h_included__
1
#ifndef __usbconfig_h_included__
12
#define __usbconfig_h_included__
2
#define __usbconfig_h_included__
13
 
3
 
14
/* ---------------------------- Hardware Config ---------------------------- */
4
/* ---------------------------- Hardware Config ---------------------------- */
15
 
5
 
16
#define USB_CFG_IOPORTNAME      D
6
#define USB_CFG_IOPORTNAME      D
17
#define USB_CFG_DMINUS_BIT      3
7
#define USB_CFG_DMINUS_BIT      3
18
#define USB_CFG_DPLUS_BIT       2
8
#define USB_CFG_DPLUS_BIT       2
19
#define USB_CFG_CLOCK_KHZ       (F_CPU/1000)
9
#define USB_CFG_CLOCK_KHZ       (F_CPU/1000)
20
 
10
 
21
/* ----------------------- Optional Hardware Config ------------------------ */
-
 
22
 
-
 
23
/* #define USB_CFG_PULLUP_IOPORTNAME   D */
-
 
24
/* #define USB_CFG_PULLUP_BIT          4 */
-
 
25
 
-
 
26
/* --------------------------- Functional Range ---------------------------- */
11
/* --------------------------- Functional Range ---------------------------- */
27
 
12
 
28
#define USB_CFG_HAVE_INTRIN_ENDPOINT    1
13
#define USB_CFG_HAVE_INTRIN_ENDPOINT    1
29
#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0
14
#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0
30
#define USB_CFG_IMPLEMENT_HALT          0
15
#define USB_CFG_IMPLEMENT_HALT          0
31
#define USB_CFG_INTR_POLL_INTERVAL      10
16
#define USB_CFG_INTR_POLL_INTERVAL      10
32
#define USB_CFG_IS_SELF_POWERED         0
17
#define USB_CFG_IS_SELF_POWERED         0
33
#define USB_CFG_MAX_BUS_POWER           100
18
#define USB_CFG_MAX_BUS_POWER           150
34
#define USB_CFG_IMPLEMENT_FN_WRITE      0
19
#define USB_CFG_IMPLEMENT_FN_WRITE      0
35
#define USB_CFG_IMPLEMENT_FN_READ       0
20
#define USB_CFG_IMPLEMENT_FN_READ       0
36
#define USB_CFG_IMPLEMENT_FN_WRITEOUT   0
21
#define USB_CFG_IMPLEMENT_FN_WRITEOUT   0
37
#define USB_CFG_HAVE_FLOWCONTROL        0
22
#define USB_CFG_HAVE_FLOWCONTROL        0
38
 
23
 
39
#ifndef __ASSEMBLER__
24
#ifndef __ASSEMBLER__
40
extern void usbEventResetReady(void);
25
extern void usbEventResetReady(void);
41
#endif
26
#endif
-
 
27
 
42
#define USB_RESET_HOOK(isReset)             if(!isReset){usbEventResetReady();}
28
#define USB_RESET_HOOK(isReset)             if(!isReset){usbEventResetReady();}
43
#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   1
29
#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   0
44
 
30
 
45
/* -------------------------- Device Description --------------------------- */
31
/* -------------------------- Device Description --------------------------- */
46
 
32
 
47
#define  USB_CFG_VENDOR_ID       0x42, 0x42
33
#define  USB_CFG_VENDOR_ID       0x42, 0x42
48
#define  USB_CFG_DEVICE_ID       0x31, 0xe1
34
#define  USB_CFG_DEVICE_ID       0x31, 0xe1
Line 72... Line 58...
72
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER    0
58
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER    0
73
#define USB_CFG_DESCR_PROPS_HID                     0
59
#define USB_CFG_DESCR_PROPS_HID                     0
74
#define USB_CFG_DESCR_PROPS_HID_REPORT              0
60
#define USB_CFG_DESCR_PROPS_HID_REPORT              0
75
#define USB_CFG_DESCR_PROPS_UNKNOWN                 0
61
#define USB_CFG_DESCR_PROPS_UNKNOWN                 0
76
 
62
 
77
/* ----------------------- Optional MCU Description ------------------------ */
-
 
78
 
-
 
79
/* #define USB_INTR_CFG            MCUCR */
-
 
80
/* #define USB_INTR_CFG_SET        ((1 << ISC00) | (1 << ISC01)) */
-
 
81
/* #define USB_INTR_CFG_CLR        0 */
-
 
82
/* #define USB_INTR_ENABLE         GIMSK */
-
 
83
/* #define USB_INTR_ENABLE_BIT     INT0 */
-
 
84
/* #define USB_INTR_PENDING        GIFR */
-
 
85
/* #define USB_INTR_PENDING_BIT    INTF0 */
-
 
86
 
-
 
87
#endif /* __usbconfig_h_included__ */
63
#endif /* __usbconfig_h_included__ */