X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f0b4d796297cd4be311b8596c8308bad218adabd..021b1b567e8686d4addccb53511b7f5447392267:/Projects/AVRISP/Lib/NVMTarget.c diff --git a/Projects/AVRISP/Lib/NVMTarget.c b/Projects/AVRISP/Lib/NVMTarget.c index 10a911ff3..c4de1d2bd 100644 --- a/Projects/AVRISP/Lib/NVMTarget.c +++ b/Projects/AVRISP/Lib/NVMTarget.c @@ -48,23 +48,7 @@ void NVMTarget_SendNVMRegAddress(uint8_t Register) uint32_t Address = XPROG_Param_NVMBase | Register; /* Send the calculated 32-bit address to the target, LSB first */ - PDITarget_SendByte(Address & 0xFF); - PDITarget_SendByte(Address >> 8); - PDITarget_SendByte(Address >> 16); - PDITarget_SendByte(Address >> 24); -} - -/** Sends the given 32-bit absolute address to the target. - * - * \param[in] AbsoluteAddress Absolute address to send to the target - */ -void NVMTarget_SendAddress(uint32_t AbsoluteAddress) -{ - /* Send the given 32-bit address to the target, LSB first */ - PDITarget_SendByte(AbsoluteAddress & 0xFF); - PDITarget_SendByte(AbsoluteAddress >> 8); - PDITarget_SendByte(AbsoluteAddress >> 16); - PDITarget_SendByte(AbsoluteAddress >> 24); + NVMTarget_SendAddress(Address); } /** Waits while the target's NVM controller is busy performing an operation, exiting if the