aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP-MKII/Lib/V2Protocol.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2011-01-22 17:48:06 +0000
committerDean Camera <[email protected]>2011-01-22 17:48:06 +0000
commit26017b68b0632c91e71eb29e87ca94670425e081 (patch)
tree111734f4a05e27e4cfb33779ab8d949388aaee4c /Projects/AVRISP-MKII/Lib/V2Protocol.h
parentef44b8c036daf4806a369dfdcd5adf72cf85b824 (diff)
downloadqmk_firmware-26017b68b0632c91e71eb29e87ca94670425e081.tar.gz
qmk_firmware-26017b68b0632c91e71eb29e87ca94670425e081.zip
Changed AVRISP-MKII project to use the Watchdog interrupt for command timeouts, to reduce CPU usage and free timer 0 for other uses in the future.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.h')
-rw-r--r--Projects/AVRISP-MKII/Lib/V2Protocol.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.h b/Projects/AVRISP-MKII/Lib/V2Protocol.h
index ed42de96ef..8e9e6ff38f 100644
--- a/Projects/AVRISP-MKII/Lib/V2Protocol.h
+++ b/Projects/AVRISP-MKII/Lib/V2Protocol.h
@@ -39,6 +39,7 @@
/* Includes: */
#include <avr/io.h>
#include <avr/interrupt.h>
+ #include <avr/wdt.h>
#include <LUFA/Drivers/USB/USB.h>
@@ -68,8 +69,8 @@
/** 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 TimeoutTicksRemaining GPIOR1
+ /** Command timeout expiration flag, GPIOR for speed. */
+ #define TimeoutExpired GPIOR1
/** MUX mask for the VTARGET ADC channel number. */
#define VTARGET_ADC_CHANNEL_MASK ADC_GET_CHANNEL_MASK(VTARGET_ADC_CHANNEL)