Fix a bug in the Still Image Host Class driver where the returned block status code...
[pub/USBasp.git] / Projects / AVRISP / Lib / NVMTarget.h
index dea9ff3..3608fcb 100644 (file)
@@ -74,8 +74,8 @@
                #define NVM_CMD_NOOP                   0x00\r
                #define NVM_CMD_CHIPERASE              0x40\r
                #define NVM_CMD_READNVM                0x43\r
-               #define NVM_CMD_LOADFLASHBUFF          0x23\r
-               #define NVM_CMD_ERASEFLASHBUFF         0x26\r
+               #define NVM_CMD_LOADFLASHPAGEBUFF      0x23\r
+               #define NVM_CMD_ERASEFLASHPAGEBUFF     0x26\r
                #define NVM_CMD_ERASEFLASHPAGE         0x2B\r
                #define NVM_CMD_FLASHPAGEWRITE         0x2E\r
                #define NVM_CMD_ERASEWRITEFLASH        0x2F\r
                bool NVMTarget_ReadMemory(uint32_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadSize);\r
                bool NVMTarget_WriteByteMemory(uint8_t WriteCommand, uint32_t WriteAddress, uint8_t* WriteBuffer,\r
                                               uint16_t WriteSize);\r
+               bool NVMTarget_WritePageMemory(uint8_t WriteBuffCommand, uint8_t EraseBuffCommand, uint8_t WritePageCommand,\r
+                                              uint8_t PageMode, uint32_t WriteAddress, uint8_t* WriteBuffer, uint16_t WriteSize);\r
                bool NVMTarget_EraseMemory(uint8_t EraseCommand, uint32_t Address);\r
 \r
 #endif\r