diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-01-22 17:48:06 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-01-22 17:48:06 +0000 |
commit | 26017b68b0632c91e71eb29e87ca94670425e081 (patch) | |
tree | 111734f4a05e27e4cfb33779ab8d949388aaee4c /Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c | |
parent | ef44b8c036daf4806a369dfdcd5adf72cf85b824 (diff) | |
download | lufa-26017b68b0632c91e71eb29e87ca94670425e081.tar.gz lufa-26017b68b0632c91e71eb29e87ca94670425e081.tar.bz2 lufa-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/XPROG/XPROGProtocol.c')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c index c89f94fe4..1b105ddb0 100644 --- a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c +++ b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c @@ -143,6 +143,8 @@ static void XPROGProtocol_LeaveXPROGMode(void) TINYNVM_DisableTPI(); #if defined(XCK_RESCUE_CLOCK_ENABLE) && defined(ENABLE_ISP_PROTOCOL) + /* If the XCK rescue clock option is enabled, we need to restart it once the + * XPROG mode has been exited, since the XPROG protocol stops it after use. */ ISPTarget_ConfigureRescueClock(); #endif |