diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-26 13:59:11 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-26 13:59:11 +0000 |
commit | e5057fec8ead1ec52dbad3b128ed94f9895fc9f4 (patch) | |
tree | 35c2db0f088b7843bdc0a88f08a0aeb77600d891 /Projects/XPLAINBridge | |
parent | 5e468010967b893feb7a623959d788d10e38940b (diff) | |
download | lufa-e5057fec8ead1ec52dbad3b128ed94f9895fc9f4.tar.gz lufa-e5057fec8ead1ec52dbad3b128ed94f9895fc9f4.tar.bz2 lufa-e5057fec8ead1ec52dbad3b128ed94f9895fc9f4.zip |
Enable pullup on the PD5 pin of the AVR in the XPLAINBridge project - this is connected to the XMEGA's /RESET line, need to enable pullup to prevent spurrious resets.
Diffstat (limited to 'Projects/XPLAINBridge')
-rw-r--r-- | Projects/XPLAINBridge/Lib/SoftUART.S | 2 | ||||
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Projects/XPLAINBridge/Lib/SoftUART.S b/Projects/XPLAINBridge/Lib/SoftUART.S index f9a89d9f9..673067b84 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.S +++ b/Projects/XPLAINBridge/Lib/SoftUART.S @@ -118,7 +118,7 @@ RX_PIN_INT: // turn on interrupt on compare match
- sbi TC_INTFLAG_REG,TC_RX_IF_BIT //------------------------
+ sbi TC_INTFLAG_REG,TC_RX_IF_BIT
lds r16,TC_INT_MASK_REG
ori r16,(1<<TC_RX_COMPEN)
diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 6d2556e2b..da5b1ccb3 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -119,6 +119,8 @@ void SetupHardware(void) SoftUART_Init();
LEDs_Init();
USB_Init();
+
+ PORTD |= (1 << 5); // PD5 is connected to the XMEGA /RESET, enable pullup
}
/** Event handler for the library USB Configuration Changed event. */
|