Skip to content
Snippets Groups Projects
Commit 8d494808 authored by Dean Camera's avatar Dean Camera
Browse files

Oops - new Write Word alignment code in the TPI programming function means...

Oops - new Write Word alignment code in the TPI programming function means that the WriteBuffer parameter is no longer const.
parent ec6fbb21
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ bool TINYNVM_ReadMemory(const uint16_t ReadAddress, uint8_t* ReadBuffer, uint16_ ...@@ -149,7 +149,7 @@ bool TINYNVM_ReadMemory(const uint16_t ReadAddress, uint8_t* ReadBuffer, uint16_
* *
* \return Boolean true if the command sequence complete successfully * \return Boolean true if the command sequence complete successfully
*/ */
bool TINYNVM_WriteMemory(const uint16_t WriteAddress, const uint8_t* WriteBuffer, uint16_t WriteLength) bool TINYNVM_WriteMemory(const uint16_t WriteAddress, uint8_t* WriteBuffer, uint16_t WriteLength)
{ {
/* Wait until the NVM controller is no longer busy */ /* Wait until the NVM controller is no longer busy */
if (!(TINYNVM_WaitWhileNVMControllerBusy())) if (!(TINYNVM_WaitWhileNVMControllerBusy()))
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
/* Function Prototypes: */ /* Function Prototypes: */
bool TINYNVM_WaitWhileNVMBusBusy(void); bool TINYNVM_WaitWhileNVMBusBusy(void);
bool TINYNVM_ReadMemory(const uint16_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadLength); bool TINYNVM_ReadMemory(const uint16_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadLength);
bool TINYNVM_WriteMemory(const uint16_t WriteAddress, const uint8_t* WriteBuffer, uint16_t WriteLength); bool TINYNVM_WriteMemory(const uint16_t WriteAddress, uint8_t* WriteBuffer, uint16_t WriteLength);
bool TINYNVM_EraseMemory(void); bool TINYNVM_EraseMemory(void);
#if defined(INCLUDE_FROM_TINYNVM_C) #if defined(INCLUDE_FROM_TINYNVM_C)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment