aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP/Lib/V2Protocol.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-12-26 04:13:55 +0000
committerDean Camera <[email protected]>2009-12-26 04:13:55 +0000
commitd1608d4af321529f0ddef9defcd97669ae9018c3 (patch)
tree79a2ba0fe2bfa14670a489e77f4c201f380de4f0 /Projects/AVRISP/Lib/V2Protocol.h
parent35dac470f243d234d72f34cbaeb1d6c8a15bc435 (diff)
downloadqmk_firmware-d1608d4af321529f0ddef9defcd97669ae9018c3.tar.gz
qmk_firmware-d1608d4af321529f0ddef9defcd97669ae9018c3.zip
Added const where possible to the source functions in the Projects directory.
Added command timeout to the AVRISP project so that incorrectly connected targets no longer freeze the device. Removed string descriptors from the TeensyHID bootloader to reduce its size.
Diffstat (limited to 'Projects/AVRISP/Lib/V2Protocol.h')
-rw-r--r--Projects/AVRISP/Lib/V2Protocol.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Projects/AVRISP/Lib/V2Protocol.h b/Projects/AVRISP/Lib/V2Protocol.h
index db4d09f0a1..76b08b022a 100644
--- a/Projects/AVRISP/Lib/V2Protocol.h
+++ b/Projects/AVRISP/Lib/V2Protocol.h
@@ -49,16 +49,21 @@
/* Preprocessor Checks: */
#if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
#undef ENABLE_ISP_PROTOCOL
- #undef ENABLE_TPI_PROTOCOL
- #if !defined(ENABLE_PDI_PROTOCOL)
- #define ENABLE_PDI_PROTOCOL
+ #if !defined(ENABLE_XPROG_PROTOCOL)
+ #define ENABLE_XPROG_PROTOCOL
#endif
#endif
/* Macros: */
/** Programmer ID string, returned to the host during the CMD_SIGN_ON command processing */
#define PROGRAMMER_ID "AVRISP_MK2"
+
+ /** Timeout period for each issued command from the host before it is aborted */
+ #define COMMAND_TIMEOUT_MS 200
+
+ /** Command timeout counter register, GPIOR for speed */
+ #define TimeoutMSRemaining GPIOR1
/* External Variables: */
extern uint32_t CurrentAddress;