diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-02-13 19:59:31 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-02-13 19:59:31 +0000 |
commit | 7a8b03868776d11428958a6fb1d627ab2ebf6daf (patch) | |
tree | d49d88b0dd3b3b7fea197214ef0f0b25675d2165 | |
parent | 01a80df6c2f61326e198f9dc9933df560da7379d (diff) | |
download | lufa-7a8b03868776d11428958a6fb1d627ab2ebf6daf.tar.gz lufa-7a8b03868776d11428958a6fb1d627ab2ebf6daf.tar.bz2 lufa-7a8b03868776d11428958a6fb1d627ab2ebf6daf.zip |
Fix Dataflash driver for the XMEGA-B1 XPLAINED - the Dataflash is connected to the USART module, but requires physical port remapping.
-rw-r--r-- | LUFA/Drivers/Board/XMEGA/B1_XPLAINED/Dataflash.h | 2 |
1 files changed, 2 insertions, 0 deletions
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. |