Rev 3333 Rev 3335
Line 18... Line 18...
18 */ 18 */
19   19  
20 /* ---------------------------- Hardware Config ---------------------------- */ 20 /* ---------------------------- Hardware Config ---------------------------- */
21   21  
22 #if! defined (__AVR_ATtiny45__) 22 #if! defined (__AVR_ATtiny45__)
23 #define USB_CFG_IOPORTNAME C 23 #define USB_CFG_IOPORTNAME D
24 /* This is the port where the USB bus is connected. When you configure it to 24 /* 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 25 * "PORTB", the registers PORTB, PINB (=PORTB+2) and DDRB (=PORTB+1) will be
26 * used. 26 * used.
27 */ 27 */
28 #define USB_CFG_DMINUS_BIT 0 28 #define USB_CFG_DMINUS_BIT 4
29 /* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected. 29 /* 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! 30 * This MUST be bit 0. All other values will result in a compile error!
31 */ 31 */
32 #define USB_CFG_DPLUS_BIT 1 32 #define USB_CFG_DPLUS_BIT 2
33 /* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected. 33 /* 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 34 * This may be any bit in the port. Please note that D+ must also be connected
35 * to interrupt pin INT0! 35 * to interrupt pin INT0!
36 */ 36 */
37 #else 37 #else