X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/79efd8c79e723adb3392367ae62356c5c3a835d0..2f6c096050ee0057ccbff0ee87d58f72fae75748:/Projects/AVRISP/Lib/NVMTarget.h diff --git a/Projects/AVRISP/Lib/NVMTarget.h b/Projects/AVRISP/Lib/NVMTarget.h index 3608fcb35..e9acd4375 100644 --- a/Projects/AVRISP/Lib/NVMTarget.h +++ b/Projects/AVRISP/Lib/NVMTarget.h @@ -77,7 +77,7 @@ #define NVM_CMD_LOADFLASHPAGEBUFF 0x23 #define NVM_CMD_ERASEFLASHPAGEBUFF 0x26 #define NVM_CMD_ERASEFLASHPAGE 0x2B - #define NVM_CMD_FLASHPAGEWRITE 0x2E + #define NVM_CMD_WRITEFLASHPAGE 0x2E #define NVM_CMD_ERASEWRITEFLASH 0x2F #define NVM_CMD_FLASHCRC 0x78 #define NVM_CMD_ERASEAPPSEC 0x20 @@ -111,8 +111,7 @@ bool NVMTarget_WaitWhileNVMControllerBusy(void); bool NVMTarget_GetMemoryCRC(uint8_t CRCCommand, uint32_t* CRCDest); bool NVMTarget_ReadMemory(uint32_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadSize); - bool NVMTarget_WriteByteMemory(uint8_t WriteCommand, uint32_t WriteAddress, uint8_t* WriteBuffer, - uint16_t WriteSize); + bool NVMTarget_WriteByteMemory(uint8_t WriteCommand, uint32_t WriteAddress, uint8_t* WriteBuffer); bool NVMTarget_WritePageMemory(uint8_t WriteBuffCommand, uint8_t EraseBuffCommand, uint8_t WritePageCommand, uint8_t PageMode, uint32_t WriteAddress, uint8_t* WriteBuffer, uint16_t WriteSize); bool NVMTarget_EraseMemory(uint8_t EraseCommand, uint32_t Address);