aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP/Lib/V2Protocol.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-12-23 13:28:44 +0000
committerDean Camera <[email protected]>2009-12-23 13:28:44 +0000
commitbd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610 (patch)
tree2134708569c80cf166664ef6ad3aeba9a9e08d9a /Projects/AVRISP/Lib/V2Protocol.h
parentbe71f934a4434ebeab7e9c2263ffb1170499a169 (diff)
downloadqmk_firmware-bd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610.tar.gz
qmk_firmware-bd5e8f07b71b4fa0c058c0edfa8ff3f59ab31610.zip
Stub out more of the TPI programming protocol routines in the AVRISP project.
Diffstat (limited to 'Projects/AVRISP/Lib/V2Protocol.h')
-rw-r--r--Projects/AVRISP/Lib/V2Protocol.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/Projects/AVRISP/Lib/V2Protocol.h b/Projects/AVRISP/Lib/V2Protocol.h
index 4ea1cba191..b43ae89c56 100644
--- a/Projects/AVRISP/Lib/V2Protocol.h
+++ b/Projects/AVRISP/Lib/V2Protocol.h
@@ -45,6 +45,7 @@
#include "V2ProtocolParams.h"
#include "ISPProtocol.h"
#include "PDIProtocol.h"
+ #include "TPIProtocol.h"
/* Preprocessor Checks: */
#if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
@@ -61,27 +62,7 @@
#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 TARGET_BUSY_TIMEOUT_MS 240
/* External Variables: */
extern uint32_t CurrentAddress;