+ /* Wait until the NVM controller is no longer busy */\r
+ if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r
+ return false;\r
+\r
+ /* Set the NVM control register to the WORD WRITE command for memory reading */\r
+ XPROGTarget_SendByte(TPI_CMD_SOUT | XPROG_Param_NVMCMDRegAddr);\r
+ XPROGTarget_SendByte(TINY_NVM_CMD_WORDWRITE);\r
+ \r
+ /* Send the address of the location to write to */\r
+ TINYNVM_SendPointerAddress(WriteAddress);\r
+ \r
+ while (WriteLength--)\r
+ {\r
+ /* Write the byte of data to the target */\r
+ XPROGTarget_SendByte(TPI_CMD_SST | TPI_POINTER_INDIRECT_PI);\r
+ XPROGTarget_SendByte(*(WriteBuffer++));\r
+ }\r