Un-inline the SendAddress function in NVMTarget.c/.h of the AVRISP project.
[pub/USBasp.git] / Projects / AVRISP / Lib / NVMTarget.c
index c4de1d2..0097360 100644 (file)
@@ -51,6 +51,19 @@ void NVMTarget_SendNVMRegAddress(uint8_t Register)
        NVMTarget_SendAddress(Address);\r
 }\r
 \r
+/** Sends the given 32-bit absolute address to the target.\r
+ *\r
+ *  \param[in] AbsoluteAddress  Absolute address to send to the target\r
+ */\r
+void NVMTarget_SendAddress(uint32_t AbsoluteAddress)\r
+{\r
+       /* Send the given 32-bit address to the target, LSB first */\r
+       PDITarget_SendByte(AbsoluteAddress &  0xFF);\r
+       PDITarget_SendByte(AbsoluteAddress >> 8);\r
+       PDITarget_SendByte(AbsoluteAddress >> 16);\r
+       PDITarget_SendByte(AbsoluteAddress >> 24);\r
+}\r
+\r
 /** Waits while the target's NVM controller is busy performing an operation, exiting if the\r
  *  timeout period expires.\r
  *\r