Revert change to the AVRISP-MKII project for fuse byte programming via the CMDEX bit - this appears to be an error in the XMEGA manual external memory programming table.

This commit is contained in:
Dean Camera 2010-10-02 10:07:24 +00:00
parent a447ae134f
commit 93793679c9
2 changed files with 0 additions and 10 deletions

View file

@ -220,15 +220,6 @@ bool XMEGANVM_WriteByteMemory(const uint8_t WriteCommand, const uint32_t WriteAd
XPROGTarget_SendByte(PDI_CMD_STS | (PDI_DATSIZE_4BYTES << 2));
XMEGANVM_SendAddress(WriteAddress);
XPROGTarget_SendByte(Byte);
/* Lock bytes need a special confirmation sequence for the write to complete */
if (WriteCommand == XMEGA_NVM_CMD_WRITELOCK)
{
/* Set CMDEX bit in NVM CTRLA register to start the Lock Byte write sequence */
XPROGTarget_SendByte(PDI_CMD_STS | (PDI_DATSIZE_4BYTES << 2));
XMEGANVM_SendNVMRegAddress(XMEGA_NVM_REG_CTRLA);
XPROGTarget_SendByte(1 << 0);
}
return true;
}