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.
This commit is contained in:
parent
f229502d9a
commit
7e74bd3ea2
7 changed files with 185 additions and 83 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue