aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-24 12:49:19 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-24 12:49:19 +0000
commit8cb8f1cfddf0d9a76442f8fdafe207ac7e6fe340 (patch)
tree2d9631b3a301e1b0cb1b1dd4414ca70d701a9802 /Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h
parent92adb00f8eebab41853f95bbc0de8a2006c6df3d (diff)
downloadlufa-8cb8f1cfddf0d9a76442f8fdafe207ac7e6fe340.tar.gz
lufa-8cb8f1cfddf0d9a76442f8fdafe207ac7e6fe340.tar.bz2
lufa-8cb8f1cfddf0d9a76442f8fdafe207ac7e6fe340.zip
Switch to hardware delays and timeouts via a hardware timer in the V2 Protocol handler.
More additions to the PROGRAM_FLASH_ISP and PROGRAM_EEPROM_ISP commands, although neither work correctly yet. Added dummy RESET_PROTECTIONS handler to prevent the Atmel driver from crashing when the command returns an UNKNOWN_COMMAND error code.
Diffstat (limited to 'Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h')
-rw-r--r--Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h b/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h
index 847770c7b..d67f84708 100644
--- a/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h
+++ b/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.h
@@ -48,7 +48,7 @@
#include "V2ProtocolParams.h"
/* Macros: */
- #define TARGET_BUSY_TIMEOUT_MS 100
+ #define TARGET_BUSY_TIMEOUT_MS 200
/* External Variables: */
extern uint32_t CurrentAddress;
@@ -57,7 +57,8 @@
uint8_t V2Protocol_GetSPIPrescalerMask(void);
void V2Protocol_ChangeTargetResetLine(bool ResetTarget);
void V2Protocol_DelayMS(uint8_t MS);
- uint8_t V2Protocol_WaitForProgrammingComplete(uint16_t PollAddress, uint8_t ProgrammingMode);
+ uint8_t V2Protocol_WaitForProgComplete(uint8_t ProgrammingMode, uint16_t PollAddress, uint8_t PollValue,
+ uint8_t DelayMS, bool IsFlashMemory, uint8_t ReadMemCommand);
uint8_t V2Protocol_WaitWhileTargetBusy(void);
void V2Protocol_LoadExtendedAddress(void);