From 7a8b03868776d11428958a6fb1d627ab2ebf6daf Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Mon, 13 Feb 2012 19:59:31 +0000
Subject: [PATCH] Fix Dataflash driver for the XMEGA-B1 XPLAINED - the
 Dataflash is connected to the USART module, but requires physical port
 remapping.

---
 LUFA/Drivers/Board/XMEGA/B1_XPLAINED/Dataflash.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/LUFA/Drivers/Board/XMEGA/B1_XPLAINED/Dataflash.h b/LUFA/Drivers/Board/XMEGA/B1_XPLAINED/Dataflash.h
index e12f969e6..f1e6da5f0 100644
--- a/LUFA/Drivers/Board/XMEGA/B1_XPLAINED/Dataflash.h
+++ b/LUFA/Drivers/Board/XMEGA/B1_XPLAINED/Dataflash.h
@@ -90,6 +90,8 @@
 			{
 				DATAFLASH_CHIPCS_PORT.DIRSET = DATAFLASH_CHIPCS_MASK;
 				DATAFLASH_CHIPCS_PORT.OUTSET = DATAFLASH_CHIPCS_MASK;
+				
+				PORTE.REMAP |= PORT_USART0_bm;
 			}
 
 			/** Sends a byte to the currently selected dataflash IC, and returns a byte from the dataflash.
-- 
GitLab