Stub out more of the TPI programming protocol routines in the AVRISP project.
[pub/USBasp.git] / Projects / AVRISP / Lib / V2Protocol.h
index 4ea1cba..b43ae89 100644 (file)
@@ -45,6 +45,7 @@
                #include "V2ProtocolParams.h"
                #include "ISPProtocol.h"\r
                #include "PDIProtocol.h"\r
+               #include "TPIProtocol.h"\r
 \r
        /* Preprocessor Checks: */\r
                #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))\r
                #define PROGRAMMER_ID             "AVRISP_MK2"\r
 \r
                /** Timeout in milliseconds of target busy-wait loops waiting for a command to complete */\r
-               #define TARGET_BUSY_TIMEOUT_MS    240\r
-\r
-       /* Inline Functions: */\r
-               /** Blocking delay for a given number of milliseconds, via a hardware timer.\r
-                *\r
-                *  \param[in] DelayMS  Number of milliseconds to delay for\r
-                */\r
-               static inline void V2Protocol_DelayMS(uint8_t DelayMS)\r
-               {\r
-                       TCNT0 = 0;\r
-                       TIFR0 = (1 << OCF1A);\r
-\r
-                       while (DelayMS)\r
-                       {\r
-                               if (TIFR0 & (1 << OCF1A))\r
-                               {\r
-                                       TIFR0 = (1 << OCF1A);\r
-                                       DelayMS--;\r
-                               }\r
-                       }\r
-               }
+               #define TARGET_BUSY_TIMEOUT_MS    240
 \r
        /* External Variables: */\r
                extern uint32_t CurrentAddress;\r