Add Doxygen documentation to the completed portions of the PDI programming protocol...
[pub/USBasp.git] / Projects / AVRISP / Lib / ISPProtocol.c
index 8bfa4d4..9b8666a 100644 (file)
@@ -35,6 +35,8 @@
 \r
 #include "ISPProtocol.h"\r
 \r
+#if defined(ENABLE_ISP_PROTOCOL) || defined(__DOXYGEN__)\r
+\r
 /** Handler for the CMD_ENTER_PROGMODE_ISP command, which attempts to enter programming mode on\r
  *  the attached device, returning success or failure back to the host.\r
  */\r
@@ -61,7 +63,7 @@ void ISPProtocol_EnterISPMode(void)
        \r
        CurrentAddress = 0;\r
 \r
-       V2Protocol_DelayMS(Enter_ISP_Params.ExecutionDelayMS);    \r
+       V2Protocol_DelayMS(Enter_ISP_Params.ExecutionDelayMS); \r
        SPI_Init(ISPTarget_GetSPIPrescalerMask() | SPI_SCK_LEAD_RISING | SPI_SAMPLE_LEADING | SPI_MODE_MASTER);\r
                \r
        while (Enter_ISP_Params.SynchLoops-- && (ResponseStatus == STATUS_CMD_FAILED))\r
@@ -468,3 +470,5 @@ void ISPProtocol_SPIMulti(void)
        Endpoint_Write_Byte(STATUS_CMD_OK);\r
        Endpoint_ClearIN();\r
 }\r
+\r
+#endif
\ No newline at end of file