aboutsummaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-03 07:41:22 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-03 07:41:22 +0000
commiteed7d4df6ae3da8616ec294d303ceea26078c707 (patch)
tree49b2ff97d0c9c97035853fd9910a3502624720bd /Projects
parent5c0c0327d56cfe682913ad04eb4df5c6286d3661 (diff)
downloadlufa-eed7d4df6ae3da8616ec294d303ceea26078c707.tar.gz
lufa-eed7d4df6ae3da8616ec294d303ceea26078c707.tar.bz2
lufa-eed7d4df6ae3da8616ec294d303ceea26078c707.zip
Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so that the stream functions early-abort if the bus is suspended before or during a transfer.
Diffstat (limited to 'Projects')
-rw-r--r--Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c4
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 6adb24f16..e2c6fd6a2 100644
--- a/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c
+++ b/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c
@@ -165,9 +165,9 @@ void XPROGTarget_EnableTargetPDI(void)
BITBANG_PDIDATA_DDR |= BITBANG_PDIDATA_MASK;
BITBANG_PDICLOCK_DDR |= BITBANG_PDICLOCK_MASK;
- /* Set DATA line low for at least 90ns to ensure that the device is ready for PDI mode to be entered */
+ /* Set DATA line low for at least 1ms to ensure that the device is ready for PDI mode to be entered */
BITBANG_PDIDATA_PORT &= ~BITBANG_PDIDATA_MASK;
- _delay_us(1);
+ _delay_ms(1);
/* Set DATA line high for at least 90ns to disable /RESET functionality */
BITBANG_PDIDATA_PORT |= BITBANG_PDIDATA_MASK;