Clean up and add more comments to the AVRISP-MKII project. Make sure the SPI_MULTI...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / V2Protocol.c
index 093c078..976f24b 100644 (file)
@@ -58,6 +58,7 @@ void V2Protocol_ProcessCommand(void)
 {\r
        uint8_t V2Command = Endpoint_Read_Byte();\r
        \r
+       /* Set total command processing timeout value, enable timeout management interrupt */\r
        TimeoutMSRemaining = COMMAND_TIMEOUT_MS;\r
        TIMSK0 |= (1 << OCIE0A);\r
 \r
@@ -121,6 +122,7 @@ void V2Protocol_ProcessCommand(void)
                        break;\r
        }\r
                \r
+       /* Disable timeout management interrupt once processing has completed */\r
        TIMSK0 &= ~(1 << OCIE0A);\r
 \r
        Endpoint_WaitUntilReady();\r
@@ -162,8 +164,8 @@ static void V2Protocol_SignOn(void)
        Endpoint_ClearIN();\r
 }\r
 \r
-/** Handler for the CMD_RESET_PROTECTION command, currently implemented as a dummy ACK function\r
- *  as no ISP short-circuit protection is currently implemented.\r
+/** Handler for the CMD_RESET_PROTECTION command, implemented as a dummy ACK function as\r
+ *  no target short-circuit protection is currently implemented.\r
  */\r
 static void V2Protocol_ResetProtection(void)\r
 {\r