aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Incomplete/AVRISP/Lib/V2Protocol.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-23 10:17:13 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-23 10:17:13 +0000
commit7e74bd3ea2f8de6c6a78fc8e2527c806b2dd8476 (patch)
tree1d86590bdba1d42a34c5d82a719ebf85b89e7262 /Projects/Incomplete/AVRISP/Lib/V2Protocol.h
parentf229502d9addacfbefe955a47931b980bfbb1a10 (diff)
downloadlufa-7e74bd3ea2f8de6c6a78fc8e2527c806b2dd8476.tar.gz
lufa-7e74bd3ea2f8de6c6a78fc8e2527c806b2dd8476.tar.bz2
lufa-7e74bd3ea2f8de6c6a78fc8e2527c806b2dd8476.zip
Moved out target-related V2 protocol commands into a seperate file for the AVRISP project.
Added Load Extended Command functionality to the LOAD ADDRESS V2 Protocol command handler for devices with more than 64KB of memory.
Diffstat (limited to 'Projects/Incomplete/AVRISP/Lib/V2Protocol.h')
-rw-r--r--Projects/Incomplete/AVRISP/Lib/V2Protocol.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/Projects/Incomplete/AVRISP/Lib/V2Protocol.h b/Projects/Incomplete/AVRISP/Lib/V2Protocol.h
index 116df8d89..4b60b5610 100644
--- a/Projects/Incomplete/AVRISP/Lib/V2Protocol.h
+++ b/Projects/Incomplete/AVRISP/Lib/V2Protocol.h
@@ -37,29 +37,20 @@
#define _V2_PROTOCOL_
/* Includes: */
- #include <avr/io.h>
- #include <util/delay.h>
-
#include <LUFA/Drivers/USB/USB.h>
- #include <LUFA/Drivers/Peripheral/SPI.h>
#include "../Descriptors.h"
#include "V2ProtocolConstants.h"
#include "V2ProtocolParams.h"
+ #include "V2ProtocolTarget.h"
/* Macros: */
#define PROGRAMMER_ID "AVRISP_MK2"
- #define TARGET_BUST_TIMEOUT_MS 100
/* Function Prototypes: */
void V2Protocol_ProcessCommand(void);
#if defined(INCLUDE_FROM_V2PROTOCOL_C)
- static uint8_t V2Protocol_GetSPIPrescalerMask(void);
- static void V2Protocol_ChangeTargetResetLine(bool ResetTarget);
- static void V2Protocol_DelayMS(uint8_t MS);
- static uint8_t V2Protocol_WaitWhileTargetBusy(void);
-
static void V2Protocol_Command_Unknown(uint8_t V2Command);
static void V2Protocol_Command_SignOn(void);
static void V2Protocol_Command_GetSetParam(uint8_t V2Command);