Enable pullup on the PD5 pin of the AVR in the XPLAINBridge project - this is connect...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 26 Nov 2009 13:59:11 +0000 (13:59 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 26 Nov 2009 13:59:11 +0000 (13:59 +0000)
Projects/XPLAINBridge/Lib/SoftUART.S
Projects/XPLAINBridge/XPLAINBridge.c

index f9a89d9..673067b 100644 (file)
@@ -118,7 +118,7 @@ RX_PIN_INT:
 \r
        // turn on interrupt on compare match\r
 \r
-       sbi             TC_INTFLAG_REG,TC_RX_IF_BIT             //------------------------\r
+       sbi             TC_INTFLAG_REG,TC_RX_IF_BIT     \r
 \r
        lds             r16,TC_INT_MASK_REG\r
        ori             r16,(1<<TC_RX_COMPEN)\r
index 6d2556e..da5b1cc 100644 (file)
@@ -119,6 +119,8 @@ void SetupHardware(void)
        SoftUART_Init();\r
        LEDs_Init();\r
        USB_Init();\r
+       \r
+       PORTD |= (1 << 5); // PD5 is connected to the XMEGA /RESET, enable pullup\r
 }\r
 \r
 /** Event handler for the library USB Configuration Changed event. */\r