Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 1 Feb 2010 10:09:18 +0000 (10:09 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 1 Feb 2010 10:09:18 +0000 (10:09 +0000)
LUFA/Drivers/Board/STK525/Dataflash.h
LUFA/ManPages/ChangeLog.txt

index db78a7b..d779f74 100644 (file)
                         */\r
                        static inline void Dataflash_SendAddressBytes(uint16_t PageAddress, const uint16_t BufferByte)\r
                        {       \r
-                               Dataflash_SendByte(PageAddress >> 5);\r
-                               Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));\r
+                               Dataflash_SendByte(PageAddress >> 6);\r
+                               Dataflash_SendByte((PageAddress << 2) | (BufferByte >> 8));\r
                                Dataflash_SendByte(BufferByte);\r
                        }\r
                        \r
index 95463f7..e5cc7c9 100644 (file)
   *    used (thanks to Daniel Levy)\r
   *  - Fixed TeensyHID bootloader not enumerating to the host correctly\r
   *  - Fixed AVRISP project timeouts not checking for the correct timeout period (thanks to Carl Ott)\r
+  *  - Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses (thanks to Tim Mitchell)\r
   *\r
   *  \section Sec_ChangeLog091122 Version 091122\r
   *\r