| Line 17... |
Line 17... |
| 17 |
must be adapted to your hardware. |
17 |
must be adapted to your hardware. |
| 18 |
*/ |
18 |
*/ |
| 19 |
|
19 |
|
| 20 |
/* ---------------------------- Hardware Config ---------------------------- */ |
20 |
/* ---------------------------- Hardware Config ---------------------------- */ |
| 21 |
|
21 |
|
| 22 |
#if! defined (__AVR_ATtiny45__) |
22 |
#include "config.h" |
| - |
|
23 |
|
| 23 |
#define USB_CFG_IOPORTNAME C |
24 |
#define USB_CFG_IOPORTNAME CONFIG_USB_PORT |
| 24 |
/* This is the port where the USB bus is connected. When you configure it to |
25 |
/* This is the port where the USB bus is connected. When you configure it to |
| 25 |
* "PORTB", the registers PORTB, PINB (=PORTB+2) and DDRB (=PORTB+1) will be |
26 |
* "PORTB", the registers PORTB, PINB (=PORTB+2) and DDRB (=PORTB+1) will be |
| 26 |
* used. |
27 |
* used. |
| 27 |
*/ |
28 |
*/ |
| 28 |
#define USB_CFG_DMINUS_BIT 0 |
29 |
#define USB_CFG_DMINUS_BIT CONFIG_USB_DMINUS |
| 29 |
/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected. |
30 |
/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected. |
| 30 |
* This MUST be bit 0. All other values will result in a compile error! |
31 |
* This MUST be bit 0. All other values will result in a compile error! |
| 31 |
*/ |
32 |
*/ |
| 32 |
#define USB_CFG_DPLUS_BIT 1 |
33 |
#define USB_CFG_DPLUS_BIT CONFIG_USB_DPLUS |
| 33 |
/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected. |
34 |
/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected. |
| 34 |
* This may be any bit in the port. Please note that D+ must also be connected |
35 |
* This may be any bit in the port. Please note that D+ must also be connected |
| 35 |
* to interrupt pin INT0! |
36 |
* to interrupt pin INT0! |
| 36 |
*/ |
37 |
*/ |
| 37 |
#else |
- |
|
| 38 |
#define USB_CFG_IOPORTNAME B |
- |
|
| 39 |
#define USB_CFG_DMINUS_BIT 0 |
- |
|
| 40 |
#define USB_CFG_DPLUS_BIT 2 |
- |
|
| 41 |
#endif |
- |
|
| 42 |
|
38 |
|
| 43 |
/* --------------------------- Functional Range ---------------------------- */ |
39 |
/* --------------------------- Functional Range ---------------------------- */ |
| 44 |
|
40 |
|
| 45 |
#define USB_CFG_HAVE_INTRIN_ENDPOINT 0 |
41 |
#define USB_CFG_HAVE_INTRIN_ENDPOINT 0 |
| 46 |
/* Define this to 1 if you want to compile a version with two endpoints: The |
42 |
/* Define this to 1 if you want to compile a version with two endpoints: The |