From f3d370a7778dc8e374efc3b76e26f8ecefc27e84 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 17 Jan 2010 04:39:33 +0000 Subject: 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. --- Projects/AVRISP-MKII/Lib/V2ProtocolParams.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Projects/AVRISP-MKII/Lib/V2ProtocolParams.h') diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h index 04e32fe2ee..995468a4d8 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. */ -- cgit v1.2.3