aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/XPLAIN/Dataflash.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-01-07 12:38:32 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-01-07 12:38:32 +0000
commita56d95e8c2f77e0099014689221ca6881ef5563d (patch)
tree46049b4db2c06fb9e124c7b99c6b459539f21972 /LUFA/Drivers/Board/XPLAIN/Dataflash.h
parentefb6c357784af2293a50b3fca9503c3a4c13a9e1 (diff)
downloadlufa-a56d95e8c2f77e0099014689221ca6881ef5563d.tar.gz
lufa-a56d95e8c2f77e0099014689221ca6881ef5563d.tar.bz2
lufa-a56d95e8c2f77e0099014689221ca6881ef5563d.zip
Fix XPLAIN Dataflash and LED drivers.
Diffstat (limited to 'LUFA/Drivers/Board/XPLAIN/Dataflash.h')
-rw-r--r--LUFA/Drivers/Board/XPLAIN/Dataflash.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/LUFA/Drivers/Board/XPLAIN/Dataflash.h b/LUFA/Drivers/Board/XPLAIN/Dataflash.h
index d793d306f..de71f29ed 100644
--- a/LUFA/Drivers/Board/XPLAIN/Dataflash.h
+++ b/LUFA/Drivers/Board/XPLAIN/Dataflash.h
@@ -72,7 +72,7 @@
/** Mask for the first dataflash chip selected. */
#define DATAFLASH_CHIP1 (1 << 5)
- #if BOAD == XPLAIN_REV1
+ #if (BOARD == BOARD_XPLAIN_REV1)
#define DATAFLASH_PAGE_SIZE 256
#define DATAFLASH_PAGES 2048
@@ -111,9 +111,7 @@
* \param[in] BufferByte Address within the dataflash's buffer
*/
static inline void Dataflash_SendAddressBytes(uint16_t PageAddress, const uint16_t BufferByte)
- {
- PageAddress >>= 1;
-
+ {
Dataflash_SendByte(PageAddress >> 5);
Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));
Dataflash_SendByte(BufferByte);