From: Dean Camera Date: Mon, 1 Feb 2010 10:09:18 +0000 (+0000) Subject: Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses... X-Git-Tag: LUFA-110528-BETA~634 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/2ae397dc2f6398cadbb228108e826be170548e61 Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses (thanks to Tim Mitchell). --- diff --git a/LUFA/Drivers/Board/STK525/Dataflash.h b/LUFA/Drivers/Board/STK525/Dataflash.h index db78a7b3e..d779f7407 100644 --- a/LUFA/Drivers/Board/STK525/Dataflash.h +++ b/LUFA/Drivers/Board/STK525/Dataflash.h @@ -106,8 +106,8 @@ */ static inline void Dataflash_SendAddressBytes(uint16_t PageAddress, const uint16_t BufferByte) { - Dataflash_SendByte(PageAddress >> 5); - Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8)); + Dataflash_SendByte(PageAddress >> 6); + Dataflash_SendByte((PageAddress << 2) | (BufferByte >> 8)); Dataflash_SendByte(BufferByte); } diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt index 95463f7dc..e5cc7c99f 100644 --- a/LUFA/ManPages/ChangeLog.txt +++ b/LUFA/ManPages/ChangeLog.txt @@ -114,6 +114,7 @@ * used (thanks to Daniel Levy) * - Fixed TeensyHID bootloader not enumerating to the host correctly * - Fixed AVRISP project timeouts not checking for the correct timeout period (thanks to Carl Ott) + * - Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses (thanks to Tim Mitchell) * * \section Sec_ChangeLog091122 Version 091122 *