From 8cb8f1cfddf0d9a76442f8fdafe207ac7e6fe340 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 24 Aug 2009 12:49:19 +0000 Subject: 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. --- Projects/Incomplete/AVRISP/Lib/V2Protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Projects/Incomplete/AVRISP/Lib/V2Protocol.h') diff --git a/Projects/Incomplete/AVRISP/Lib/V2Protocol.h b/Projects/Incomplete/AVRISP/Lib/V2Protocol.h index cd9648253..55c1c78c2 100644 --- a/Projects/Incomplete/AVRISP/Lib/V2Protocol.h +++ b/Projects/Incomplete/AVRISP/Lib/V2Protocol.h @@ -56,7 +56,6 @@ #define PROG_MODE_PAGED_TIMEDELAY_MASK (1 << 4) #define PROG_MODE_PAGED_VALUE_MASK (1 << 5) #define PROG_MODE_PAGED_READYBUSY_MASK (1 << 6) - #define PROG_MODE_COMMIT_PAGE_MASK (1 << 7) /* Function Prototypes: */ @@ -67,6 +66,7 @@ static void V2Protocol_Command_SignOn(void); static void V2Protocol_Command_GetSetParam(uint8_t V2Command); static void V2Protocol_Command_LoadAddress(void); + static void V2Protocol_Command_ResetProtection(void); static void V2Protocol_Command_EnterISPMode(void); static void V2Protocol_Command_LeaveISPMode(void); static void V2Protocol_Command_ProgramMemory(uint8_t V2Command); -- cgit v1.2.3