X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/cda88cf97c63c26229578e17184bedcdc0cabc77..05fcf7e2a79bebb978d4aeaef26b12f70c6826f8:/Projects/AVRISP/Lib/V2Protocol.h?ds=inline diff --git a/Projects/AVRISP/Lib/V2Protocol.h b/Projects/AVRISP/Lib/V2Protocol.h index 4ea1cba19..8cc4c3c68 100644 --- a/Projects/AVRISP/Lib/V2Protocol.h +++ b/Projects/AVRISP/Lib/V2Protocol.h @@ -39,12 +39,13 @@ /* Includes: */ #include #include + #include #include "../Descriptors.h" #include "V2ProtocolConstants.h" #include "V2ProtocolParams.h" - #include "ISPProtocol.h" - #include "PDIProtocol.h" + #include "ISP/ISPProtocol.h" + #include "XPROG/XPROGProtocol.h" /* Preprocessor Checks: */ #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) @@ -58,34 +59,11 @@ /* Macros: */ /** Programmer ID string, returned to the host during the CMD_SIGN_ON command processing */ - #define PROGRAMMER_ID "AVRISP_MK2" - - /** Timeout in milliseconds of target busy-wait loops waiting for a command to complete */ - #define TARGET_BUSY_TIMEOUT_MS 240 - - /* Inline Functions: */ - /** Blocking delay for a given number of milliseconds, via a hardware timer. - * - * \param[in] DelayMS Number of milliseconds to delay for - */ - static inline void V2Protocol_DelayMS(uint8_t DelayMS) - { - TCNT0 = 0; - TIFR0 = (1 << OCF1A); - - while (DelayMS) - { - if (TIFR0 & (1 << OCF1A)) - { - TIFR0 = (1 << OCF1A); - DelayMS--; - } - } - } + #define PROGRAMMER_ID "AVRISP_MK2" /* External Variables: */ extern uint32_t CurrentAddress; - extern bool MustSetAddress; + extern bool MustSetAddress; /* Function Prototypes: */ void V2Protocol_ProcessCommand(void);