Skip to content
Snippets Groups Projects
Commit e5057fec authored by Dean Camera's avatar Dean Camera
Browse files

Enable pullup on the PD5 pin of the AVR in the XPLAINBridge project - this is...

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.
parent 5e468010
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ RX_PIN_INT: ...@@ -118,7 +118,7 @@ RX_PIN_INT:
// turn on interrupt on compare match // 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 lds r16,TC_INT_MASK_REG
ori r16,(1<<TC_RX_COMPEN) ori r16,(1<<TC_RX_COMPEN)
......
...@@ -119,6 +119,8 @@ void SetupHardware(void) ...@@ -119,6 +119,8 @@ void SetupHardware(void)
SoftUART_Init(); SoftUART_Init();
LEDs_Init(); LEDs_Init();
USB_Init(); USB_Init();
PORTD |= (1 << 5); // PD5 is connected to the XMEGA /RESET, enable pullup
} }
/** Event handler for the library USB Configuration Changed event. */ /** Event handler for the library USB Configuration Changed event. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment