Rev 3514 Rev 3516
Line 8... Line 8...
8 // ====================================================================== 8 // ======================================================================
9   9  
10 // The D+ and D- USB signals should be connected to two pins of the same 10 // The D+ and D- USB signals should be connected to two pins of the same
11 // I/O port. The following macros define the port letter and the input 11 // I/O port. The following macros define the port letter and the input
12 // bit numbers: 12 // bit numbers:
13 #if! defined (__AVR_ATtiny45__) -  
-   13  
14 #define USBTINY_PORT C 14 #include "config.h"
15 #define USBTINY_DPLUS 1 -  
16 #define USBTINY_DMINUS 0 -  
17 #else 15  
18 #define USBTINY_PORT B 16 #define USBTINY_PORT CONFIG_USB_PORT
19 #define USBTINY_DPLUS 2 17 #define USBTINY_DPLUS CONFIG_USB_DPLUS
20 #define USBTINY_DMINUS 0 18 #define USBTINY_DMINUS CONFIG_USB_DMINUS
21 #endif -  
22   19  
23 // The D+ signal should be connected to an interrupt input to trigger an 20 // The D+ signal should be connected to an interrupt input to trigger an
24 // interrupt at the start of a packet. When you use the same pin for the 21 // interrupt at the start of a packet. When you use the same pin for the
25 // D+ USB signal and the interrupt input, only two I/O pins are needed 22 // D+ USB signal and the interrupt input, only two I/O pins are needed
26 // for the USB interface. The following macro defines the interrupt 23 // for the USB interface. The following macro defines the interrupt