From 1875a23017a5cc5d292504373474698afe1155eb Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Mon, 22 Feb 2010 14:43:48 -0500 Subject: [PATCH] Change V-USB config to allow for usbDeviceConnect in software --- usbconfig.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usbconfig.h b/usbconfig.h index 92479bc..111fa23 100644 --- a/usbconfig.h +++ b/usbconfig.h @@ -59,13 +59,13 @@ section at the end of this file). /* ----------------------- Optional Hardware Config ------------------------ */ -/* #define USB_CFG_PULLUP_IOPORTNAME D */ +#define USB_CFG_PULLUP_IOPORTNAME D /* If you connect the 1.5k pullup resistor from D- to a port pin instead of * V+, you can connect and disconnect the device from firmware by calling * the macros usbDeviceConnect() and usbDeviceDisconnect() (see usbdrv.h). * This constant defines the port on which the pullup resistor is connected. */ -/* #define USB_CFG_PULLUP_BIT 4 */ +#define USB_CFG_PULLUP_BIT 3 /* This constant defines the bit number in USB_CFG_PULLUP_IOPORT (defined * above) where the 1.5k pullup resistor is connected. See description * above for details. @@ -202,7 +202,7 @@ section at the end of this file). /* define this macro to 1 if you want the function usbMeasureFrameLength() * compiled in. This function can be used to calibrate the AVR's RC oscillator. */ -#define USB_USE_FAST_CRC 0 +#define USB_USE_FAST_CRC 1 /* The assembler module has two implementations for the CRC algorithm. One is * faster, the other is smaller. This CRC routine is only used for transmitted * messages where timing is not critical. The faster routine needs 31 cycles -- 2.39.5