Added new XCK_RESCUE_CLOCK_ENABLE compile time option to the AVRISP-MKII clone programmer project (thanks to Tom Light).
This commit is contained in:
parent
b27f35536d
commit
002cd6df49
6 changed files with 34 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ void XPROGTarget_DisableTargetTPI(void)
|
|||
/* Set all USART lines as input, tristate */
|
||||
DDRD &= ~((1 << 5) | (1 << 3));
|
||||
PORTD &= ~((1 << 5) | (1 << 3) | (1 << 2));
|
||||
|
||||
|
||||
/* Tristate target /RESET line */
|
||||
AUX_LINE_DDR &= ~AUX_LINE_MASK;
|
||||
AUX_LINE_PORT &= ~AUX_LINE_MASK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue