Commit 2ae397dc authored by Dean Camera's avatar Dean Camera
Browse files

Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash...

Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses (thanks to Tim Mitchell).
parent 9e7ffcb0
...@@ -106,8 +106,8 @@ ...@@ -106,8 +106,8 @@
*/ */
static inline void Dataflash_SendAddressBytes(uint16_t PageAddress, const uint16_t BufferByte) static inline void Dataflash_SendAddressBytes(uint16_t PageAddress, const uint16_t BufferByte)
{ {
Dataflash_SendByte(PageAddress >> 5); Dataflash_SendByte(PageAddress >> 6);
Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8)); Dataflash_SendByte((PageAddress << 2) | (BufferByte >> 8));
Dataflash_SendByte(BufferByte); Dataflash_SendByte(BufferByte);
} }
......
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
* used (thanks to Daniel Levy) * used (thanks to Daniel Levy)
* - Fixed TeensyHID bootloader not enumerating to the host correctly * - 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 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 * \section Sec_ChangeLog091122 Version 091122
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment