aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP-MKII/Lib/V2Protocol.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-07-13 11:26:03 +0000
committerDean Camera <[email protected]>2010-07-13 11:26:03 +0000
commit666c0fa4c31b2c9f7f02f6d0e09551e24dc4680c (patch)
tree6fd57a5b9cd741895fbaf55f6c56708d521d7748 /Projects/AVRISP-MKII/Lib/V2Protocol.h
parent03130342451003093e654edc5b031718d544e9ba (diff)
downloadqmk_firmware-666c0fa4c31b2c9f7f02f6d0e09551e24dc4680c.tar.gz
qmk_firmware-666c0fa4c31b2c9f7f02f6d0e09551e24dc4680c.zip
Remove the timeout period extension code from the AVRISP project, as no single command should ever exceed the maximum timeout period. Extend timeout period to 1 second per command, so that an accidental timeout will never occur.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.h')
-rw-r--r--Projects/AVRISP-MKII/Lib/V2Protocol.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.h b/Projects/AVRISP-MKII/Lib/V2Protocol.h
index 5b85892947..12ab5992d0 100644
--- a/Projects/AVRISP-MKII/Lib/V2Protocol.h
+++ b/Projects/AVRISP-MKII/Lib/V2Protocol.h
@@ -66,11 +66,11 @@
/** 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
+ /** Timeout period for each issued command from the host before it is aborted (in 10ms ticks). */
+ #define COMMAND_TIMEOUT_TICKS 100
/** Command timeout counter register, GPIOR for speed. */
- #define TimeoutMSRemaining GPIOR0
+ #define TimeoutTicksRemaining GPIOR0
/** MUX mask for the VTARGET ADC channel number. */
#define VTARGET_ADC_CHANNEL_MASK _GETADCMUXMASK(ADC_CHANNEL, VTARGET_ADC_CHANNEL)