diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-17 10:02:19 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-17 10:02:19 +0000 |
commit | c3758ac5ef70cb609289ed6f34ba7e7be7ab8841 (patch) | |
tree | af4d3b2ff9749a4ad432e41e27b09d18ae00e541 /Projects/AVRISP/Lib | |
parent | 021b1b567e8686d4addccb53511b7f5447392267 (diff) | |
download | lufa-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')
-rw-r--r-- | Projects/AVRISP/Lib/NVMTarget.c | 13 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/NVMTarget.h | 14 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/V2ProtocolParams.c | 5 |
3 files changed, 15 insertions, 17 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.
*
diff --git a/Projects/AVRISP/Lib/NVMTarget.h b/Projects/AVRISP/Lib/NVMTarget.h index 803ec3cb6..e9acd4375 100644 --- a/Projects/AVRISP/Lib/NVMTarget.h +++ b/Projects/AVRISP/Lib/NVMTarget.h @@ -105,20 +105,6 @@ #define NVM_CMD_ERASEWRITEEEPROMPAGE 0x35
#define NVM_CMD_READEEPROM 0x06
- /* Inline Functions: */
- /** Sends the given 32-bit absolute address to the target.
- *
- * \param[in] AbsoluteAddress Absolute address to send to the target
- */
- static inline 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);
- }
-
/* Function Prototypes: */
void NVMTarget_SendNVMRegAddress(uint8_t Register);
void NVMTarget_SendAddress(uint32_t AbsoluteAddress);
diff --git a/Projects/AVRISP/Lib/V2ProtocolParams.c b/Projects/AVRISP/Lib/V2ProtocolParams.c index f6b057fc9..91cccf48b 100644 --- a/Projects/AVRISP/Lib/V2ProtocolParams.c +++ b/Projects/AVRISP/Lib/V2ProtocolParams.c @@ -88,8 +88,7 @@ static ParameterItem_t ParameterTable[] = void V2Params_LoadNonVolatileParamValues(void)
{
/* Target RESET line polarity is a non-volatile value, retrieve current parameter value from EEPROM -
- * NB: Cannot call V2Protocol_SetParameterValue() here, as that will cause another EEPROM write!
- */
+ * NB: Cannot call V2Protocol_SetParameterValue() here, as that will cause another EEPROM write! */
V2Params_GetParamFromTable(PARAM_RESET_POLARITY)->ParamValue = eeprom_read_byte(&EEPROM_Rest_Polarity);
}
@@ -141,7 +140,7 @@ uint8_t V2Params_GetParameterValue(uint8_t ParamID) /** Sets the value for a given parameter in the parameter table.
*
* \param[in] ParamID Parameter ID whose value is to be set in the table
- * \param[in] Value New value to set the parameter to
+ * \param[in] Value New value to set the parameter to
*
* \return Pointer to the associated parameter information from the parameter table if found, NULL otherwise
*/
|