aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP/Lib/NVMTarget.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-17 10:02:19 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-17 10:02:19 +0000
commitc3758ac5ef70cb609289ed6f34ba7e7be7ab8841 (patch)
treeaf4d3b2ff9749a4ad432e41e27b09d18ae00e541 /Projects/AVRISP/Lib/NVMTarget.c
parent021b1b567e8686d4addccb53511b7f5447392267 (diff)
downloadlufa-c3758ac5ef70cb609289ed6f34ba7e7be7ab8841.tar.gz
lufa-c3758ac5ef70cb609289ed6f34ba7e7be7ab8841.tar.bz2
lufa-c3758ac5ef70cb609289ed6f34ba7e7be7ab8841.zip
Un-inline the SendAddress function in NVMTarget.c/.h of the AVRISP project.
Add new HotmailNotifier project, which changes a LED's colour based on the user's unread email count as sent from Windows Live Messenger.
Diffstat (limited to 'Projects/AVRISP/Lib/NVMTarget.c')
-rw-r--r--Projects/AVRISP/Lib/NVMTarget.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/Projects/AVRISP/Lib/NVMTarget.c b/Projects/AVRISP/Lib/NVMTarget.c
index c4de1d2bd..009736064 100644
--- a/Projects/AVRISP/Lib/NVMTarget.c
+++ b/Projects/AVRISP/Lib/NVMTarget.c
@@ -51,6 +51,19 @@ void NVMTarget_SendNVMRegAddress(uint8_t Register)
NVMTarget_SendAddress(Address);
}
+/** 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);
+}
+
/** Waits while the target's NVM controller is busy performing an operation, exiting if the
* timeout period expires.
*