Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGTarget.c
index 6adb24f..e2c6fd6 100644 (file)
@@ -165,9 +165,9 @@ void XPROGTarget_EnableTargetPDI(void)
        BITBANG_PDIDATA_DDR  |= BITBANG_PDIDATA_MASK;\r
        BITBANG_PDICLOCK_DDR |= BITBANG_PDICLOCK_MASK;\r
        \r
        BITBANG_PDIDATA_DDR  |= BITBANG_PDIDATA_MASK;\r
        BITBANG_PDICLOCK_DDR |= BITBANG_PDICLOCK_MASK;\r
        \r
-       /* Set DATA line low for at least 90ns to ensure that the device is ready for PDI mode to be entered */\r
+       /* Set DATA line low for at least 1ms to ensure that the device is ready for PDI mode to be entered */\r
        BITBANG_PDIDATA_PORT &= ~BITBANG_PDIDATA_MASK;\r
        BITBANG_PDIDATA_PORT &= ~BITBANG_PDIDATA_MASK;\r
-       _delay_us(1);\r
+       _delay_ms(1);\r
 \r
        /* Set DATA line high for at least 90ns to disable /RESET functionality */\r
        BITBANG_PDIDATA_PORT |= BITBANG_PDIDATA_MASK;\r
 \r
        /* Set DATA line high for at least 90ns to disable /RESET functionality */\r
        BITBANG_PDIDATA_PORT |= BITBANG_PDIDATA_MASK;\r