From d1608d4af321529f0ddef9defcd97669ae9018c3 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 26 Dec 2009 04:13:55 +0000 Subject: Added const where possible to the source functions in the Projects directory. Added command timeout to the AVRISP project so that incorrectly connected targets no longer freeze the device. Removed string descriptors from the TeensyHID bootloader to reduce its size. --- Projects/AVRISP/Lib/V2Protocol.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Projects/AVRISP/Lib/V2Protocol.h') diff --git a/Projects/AVRISP/Lib/V2Protocol.h b/Projects/AVRISP/Lib/V2Protocol.h index db4d09f0a1..76b08b022a 100644 --- a/Projects/AVRISP/Lib/V2Protocol.h +++ b/Projects/AVRISP/Lib/V2Protocol.h @@ -49,16 +49,21 @@ /* Preprocessor Checks: */ #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) #undef ENABLE_ISP_PROTOCOL - #undef ENABLE_TPI_PROTOCOL - #if !defined(ENABLE_PDI_PROTOCOL) - #define ENABLE_PDI_PROTOCOL + #if !defined(ENABLE_XPROG_PROTOCOL) + #define ENABLE_XPROG_PROTOCOL #endif #endif /* Macros: */ /** Programmer ID string, returned to the host during the CMD_SIGN_ON command processing */ #define PROGRAMMER_ID "AVRISP_MK2" + + /** Timeout period for each issued command from the host before it is aborted */ + #define COMMAND_TIMEOUT_MS 200 + + /** Command timeout counter register, GPIOR for speed */ + #define TimeoutMSRemaining GPIOR1 /* External Variables: */ extern uint32_t CurrentAddress; -- cgit v1.2.3