aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-11-16 01:37:43 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-11-16 01:37:43 +0000
commit002cd6df49981ad75b2092f2ae6b3efc4e2dd364 (patch)
tree2bad7bb012ad3230f7e83944dbfda8c21511556f /Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
parentb27f35536dce3f3ba9d3d3e8a1fa2e9c6cb9cec7 (diff)
downloadlufa-002cd6df49981ad75b2092f2ae6b3efc4e2dd364.tar.gz
lufa-002cd6df49981ad75b2092f2ae6b3efc4e2dd364.tar.bz2
lufa-002cd6df49981ad75b2092f2ae6b3efc4e2dd364.zip
Added new XCK_RESCUE_CLOCK_ENABLE compile time option to the AVRISP-MKII clone programmer project (thanks to Tom Light).
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c')
-rw-r--r--Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
index 02fbbf44d..276f63e0e 100644
--- a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
+++ b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
@@ -196,6 +196,10 @@ static void XPROGProtocol_LeaveXPROGMode(void)
XPROGTarget_DisableTargetTPI();
}
+ #if defined(XCK_RESCUE_CLOCK_ENABLE) && defined(ENABLE_ISP_PROTOCOL)
+ ISPTarget_ConfigureRescueClock();
+ #endif
+
Endpoint_Write_Byte(CMD_XPROG);
Endpoint_Write_Byte(XPRG_CMD_LEAVE_PROGMODE);
Endpoint_Write_Byte(XPRG_ERR_OK);