diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-11-21 18:41:17 +0100 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-11-21 18:41:17 +0100 |
commit | 52c69331ec117affc50838d62cb6770cd1d57b95 (patch) | |
tree | 82afec08ef5cdf2f963942deaf897ae95407d271 /Projects | |
parent | 52a5016576b829c78c0f98fac1fbe3a51e643fad (diff) | |
download | lufa-52c69331ec117affc50838d62cb6770cd1d57b95.tar.gz lufa-52c69331ec117affc50838d62cb6770cd1d57b95.tar.bz2 lufa-52c69331ec117affc50838d62cb6770cd1d57b95.zip |
Reduce PDI/TPI reset hold period from 1ms to 100us, as the former caused sporadic session issues.
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c b/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c index 165c76903..180fed6ab 100644 --- a/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c +++ b/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c @@ -52,7 +52,7 @@ void XPROGTarget_EnableTargetPDI(void) /* Set DATA line high for at least 90ns to disable /RESET functionality */ PORTD |= (1 << 3); - _delay_ms(1); + _delay_us(100); /* Set up the synchronous USART for XMEGA communications - 8 data bits, even parity, 2 stop bits */ UBRR1 = ((F_CPU / 2 / XPROG_HARDWARE_SPEED) - 1); @@ -72,7 +72,7 @@ void XPROGTarget_EnableTargetTPI(void) /* Set /RESET line low for at least 400ns to enable TPI functionality */ AUX_LINE_DDR |= AUX_LINE_MASK; AUX_LINE_PORT &= ~AUX_LINE_MASK; - _delay_ms(1); + _delay_us(100); /* Set Tx and XCK as outputs, Rx as input */ DDRD |= (1 << 5) | (1 << 3); |