aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-01-17 04:39:33 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-01-17 04:39:33 +0000
commitf3d370a7778dc8e374efc3b76e26f8ecefc27e84 (patch)
tree8e6b6a3842e05e78d7bb51a38975ff09286558c0 /Projects/AVRISP-MKII/Lib/V2ProtocolParams.h
parentb0ce1eab668ac2e4779bbf8c3e6ef193d0ab0368 (diff)
downloadlufa-f3d370a7778dc8e374efc3b76e26f8ecefc27e84.tar.gz
lufa-f3d370a7778dc8e374efc3b76e26f8ecefc27e84.tar.bz2
lufa-f3d370a7778dc8e374efc3b76e26f8ecefc27e84.zip
Clean up and add more comments to the AVRISP-MKII project. Make sure the SPI_MULTI command handler supports multiple packet responses. Use slightly smaller/faster repeated indirect-load commands when retrieving the PDI target's memory CRCs.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2ProtocolParams.h')
-rw-r--r--Projects/AVRISP-MKII/Lib/V2ProtocolParams.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h
index 04e32fe2e..995468a4d 100644
--- a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h
+++ b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h
@@ -52,10 +52,13 @@
/* Macros: */
/** Parameter privilege mask to allow the host PC to read the parameter's value */
- #define PARAM_PRIV_READ (1 << 0)
+ #define PARAM_PRIV_READ (1 << 0)
/** Parameter privilege mask to allow the host PC to change the parameter's value */
- #define PARAM_PRIV_WRITE (1 << 1)
+ #define PARAM_PRIV_WRITE (1 << 1)
+
+ /** Total number of parameters in the parameter table */
+ #define TABLE_PARAM_COUNT (sizeof(ParameterTable) / sizeof(ParameterTable[0]))
/* Type Defines: */
/** Type define for a parameter table entry indicating a PC readable or writable device parameter. */