Merge branch 'master' of ssh://librarian/var/local/git/DigisparkWheel
This commit is contained in:
commit
dc34252dd4
@ -27,11 +27,11 @@ section at the end of this file).
|
|||||||
/* This is the port where the USB bus is connected. When you configure it to
|
/* This is the port where the USB bus is connected. When you configure it to
|
||||||
* "B", the registers PORTB, PINB and DDRB will be used.
|
* "B", the registers PORTB, PINB and DDRB will be used.
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DMINUS_BIT 4
|
#define USB_CFG_DMINUS_BIT 3
|
||||||
/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.
|
/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.
|
||||||
* This may be any bit in the port.
|
* This may be any bit in the port.
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DPLUS_BIT 3
|
#define USB_CFG_DPLUS_BIT 4
|
||||||
/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected.
|
/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected.
|
||||||
* This may be any bit in the port. Please note that D+ must also be connected
|
* This may be any bit in the port. Please note that D+ must also be connected
|
||||||
* to interrupt pin INT0! [You can also use other interrupts, see section
|
* to interrupt pin INT0! [You can also use other interrupts, see section
|
||||||
@ -107,7 +107,7 @@ section at the end of this file).
|
|||||||
* (e.g. HID), but never want to send any data. This option saves a couple
|
* (e.g. HID), but never want to send any data. This option saves a couple
|
||||||
* of bytes in flash memory and the transmit buffers in RAM.
|
* of bytes in flash memory and the transmit buffers in RAM.
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_INTR_POLL_INTERVAL 100
|
#define USB_CFG_INTR_POLL_INTERVAL 10
|
||||||
/* If you compile a version with endpoint 1 (interrupt-in), this is the poll
|
/* If you compile a version with endpoint 1 (interrupt-in), this is the poll
|
||||||
* interval. The value is in milliseconds and must not be less than 10 ms for
|
* interval. The value is in milliseconds and must not be less than 10 ms for
|
||||||
* low speed devices.
|
* low speed devices.
|
||||||
@ -116,7 +116,7 @@ section at the end of this file).
|
|||||||
/* Define this to 1 if the device has its own power supply. Set it to 0 if the
|
/* Define this to 1 if the device has its own power supply. Set it to 0 if the
|
||||||
* device is powered from the USB bus.
|
* device is powered from the USB bus.
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_MAX_BUS_POWER 20
|
#define USB_CFG_MAX_BUS_POWER 100
|
||||||
/* Set this variable to the maximum USB bus power consumption of your device.
|
/* Set this variable to the maximum USB bus power consumption of your device.
|
||||||
* The value is in milliamperes. [It will be divided by two since USB
|
* The value is in milliamperes. [It will be divided by two since USB
|
||||||
* communicates power requirements in units of 2 mA.]
|
* communicates power requirements in units of 2 mA.]
|
||||||
@ -374,5 +374,13 @@ extern void hadUsbReset(void); // define the function for usbdrv.c
|
|||||||
/* #define USB_INTR_PENDING GIFR */
|
/* #define USB_INTR_PENDING GIFR */
|
||||||
/* #define USB_INTR_PENDING_BIT INTF0 */
|
/* #define USB_INTR_PENDING_BIT INTF0 */
|
||||||
/* #define USB_INTR_VECTOR INT0_vect */
|
/* #define USB_INTR_VECTOR INT0_vect */
|
||||||
|
#define USB_INTR_CFG PCMSK
|
||||||
|
#define USB_INTR_CFG_SET (1 << USB_CFG_DPLUS_BIT)
|
||||||
|
#define USB_INTR_CFG_CLR 0
|
||||||
|
#define USB_INTR_ENABLE GIMSK
|
||||||
|
#define USB_INTR_ENABLE_BIT PCIE
|
||||||
|
#define USB_INTR_PENDING GIFR
|
||||||
|
#define USB_INTR_PENDING_BIT PCIF
|
||||||
|
#define USB_INTR_VECTOR PCINT0_vect
|
||||||
|
|
||||||
#endif /* __usbconfig_h_included__ */
|
#endif /* __usbconfig_h_included__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user