diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-21 05:44:12 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-21 05:44:12 +0000 |
commit | 12a01ed72d0d6dbf243160302314870e7b29cc07 (patch) | |
tree | 61ecacb633b218c44f4b8b7d3ec963fefaafc6ba /Projects/AVRISP-MKII/Lib/V2Protocol.c | |
parent | 10b9394a8b6c9ced4e6df7687a3d5424de01157a (diff) | |
download | lufa-12a01ed72d0d6dbf243160302314870e7b29cc07.tar.gz lufa-12a01ed72d0d6dbf243160302314870e7b29cc07.tar.bz2 lufa-12a01ed72d0d6dbf243160302314870e7b29cc07.zip |
Increased the speed of both software and hardware TPI/PDI programming modes of the AVRISP project.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.c')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/V2Protocol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.c b/Projects/AVRISP-MKII/Lib/V2Protocol.c index cea42eae5..f7e5e8102 100644 --- a/Projects/AVRISP-MKII/Lib/V2Protocol.c +++ b/Projects/AVRISP-MKII/Lib/V2Protocol.c @@ -42,6 +42,8 @@ uint32_t CurrentAddress; /** Flag to indicate that the next read/write operation must update the device's current address */
bool MustSetAddress;
+bool CommandTimedOut;
+
/** Initializes the hardware and software associated with the V2 protocol command handling. */
void V2Protocol_Init(void)
{
@@ -68,6 +70,8 @@ void V2Protocol_ProcessCommand(void) {
uint8_t V2Command = Endpoint_Read_Byte();
+ CommandTimedOut = false;
+
switch (V2Command)
{
case CMD_SIGN_ON:
|