diff options
Diffstat (limited to 'Projects/AVRISP/Lib')
-rw-r--r-- | Projects/AVRISP/Lib/V2Protocol.c | 4 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/V2Protocol.h | 1 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/PDIProtocol.c (renamed from Projects/AVRISP/Lib/PDI/PDIProtocol.c) | 2 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/PDIProtocol.h (renamed from Projects/AVRISP/Lib/PDI/PDIProtocol.h) | 1 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/PDITarget.c (renamed from Projects/AVRISP/Lib/PDI/PDITarget.c) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/PDITarget.h (renamed from Projects/AVRISP/Lib/PDI/PDITarget.h) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/TINYNVM.c (renamed from Projects/AVRISP/Lib/TPI/TINYNVM.c) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/TINYNVM.h (renamed from Projects/AVRISP/Lib/TPI/TINYNVM.h) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/TPIProtocol.c (renamed from Projects/AVRISP/Lib/TPI/TPIProtocol.c) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/TPIProtocol.h (renamed from Projects/AVRISP/Lib/TPI/TPIProtocol.h) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/TPITarget.c (renamed from Projects/AVRISP/Lib/TPI/TPITarget.c) | 2 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/TPITarget.h (renamed from Projects/AVRISP/Lib/TPI/TPITarget.h) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/XMEGANVM.c (renamed from Projects/AVRISP/Lib/PDI/XMEGANVM.c) | 0 | ||||
-rw-r--r-- | Projects/AVRISP/Lib/XPROG/XMEGANVM.h (renamed from Projects/AVRISP/Lib/PDI/XMEGANVM.h) | 0 |
14 files changed, 8 insertions, 2 deletions
diff --git a/Projects/AVRISP/Lib/V2Protocol.c b/Projects/AVRISP/Lib/V2Protocol.c index 3bfcc11af..eae2e830f 100644 --- a/Projects/AVRISP/Lib/V2Protocol.c +++ b/Projects/AVRISP/Lib/V2Protocol.c @@ -50,7 +50,9 @@ bool MustSetAddress; void V2Protocol_ProcessCommand(void)
{
uint8_t V2Command = Endpoint_Read_Byte();
-
+
+ Serial_TxByte(V2Command);
+
switch (V2Command)
{
case CMD_SIGN_ON:
diff --git a/Projects/AVRISP/Lib/V2Protocol.h b/Projects/AVRISP/Lib/V2Protocol.h index c7c1a7350..02579a341 100644 --- a/Projects/AVRISP/Lib/V2Protocol.h +++ b/Projects/AVRISP/Lib/V2Protocol.h @@ -39,6 +39,7 @@ /* Includes: */ #include <LUFA/Drivers/USB/USB.h> #include <LUFA/Drivers/Peripheral/SPI.h>
+ #include <LUFA/Drivers/Peripheral/Serial.h>
#include "../Descriptors.h" #include "V2ProtocolConstants.h"
diff --git a/Projects/AVRISP/Lib/PDI/PDIProtocol.c b/Projects/AVRISP/Lib/XPROG/PDIProtocol.c index 16ac209df..ed5146063 100644 --- a/Projects/AVRISP/Lib/PDI/PDIProtocol.c +++ b/Projects/AVRISP/Lib/XPROG/PDIProtocol.c @@ -58,6 +58,8 @@ void PDIProtocol_XPROG_SetMode(void) Endpoint_ClearOUT();
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
+ Serial_TxByte(SetMode_XPROG_Params.Protocol);
+
Endpoint_Write_Byte(CMD_XPROG_SETMODE);
Endpoint_Write_Byte((SetMode_XPROG_Params.Protocol == XPRG_PROTOCOL_PDI) ? STATUS_CMD_OK : STATUS_CMD_FAILED);
Endpoint_ClearIN();
diff --git a/Projects/AVRISP/Lib/PDI/PDIProtocol.h b/Projects/AVRISP/Lib/XPROG/PDIProtocol.h index c3cafb4ec..9a10abbce 100644 --- a/Projects/AVRISP/Lib/PDI/PDIProtocol.h +++ b/Projects/AVRISP/Lib/XPROG/PDIProtocol.h @@ -100,6 +100,7 @@ #define XPRG_PROTOCOL_PDI 0x00
#define XPRG_PROTOCOL_JTAG 0x01
+ #define XPRG_PROTOCOL_TPI 0x02
#define XPRG_PAGEMODE_WRITE (1 << 1)
#define XPRG_PAGEMODE_ERASE (1 << 0)
diff --git a/Projects/AVRISP/Lib/PDI/PDITarget.c b/Projects/AVRISP/Lib/XPROG/PDITarget.c index 2c6ffd9a6..2c6ffd9a6 100644 --- a/Projects/AVRISP/Lib/PDI/PDITarget.c +++ b/Projects/AVRISP/Lib/XPROG/PDITarget.c diff --git a/Projects/AVRISP/Lib/PDI/PDITarget.h b/Projects/AVRISP/Lib/XPROG/PDITarget.h index cf7780c17..cf7780c17 100644 --- a/Projects/AVRISP/Lib/PDI/PDITarget.h +++ b/Projects/AVRISP/Lib/XPROG/PDITarget.h diff --git a/Projects/AVRISP/Lib/TPI/TINYNVM.c b/Projects/AVRISP/Lib/XPROG/TINYNVM.c index 206ea39f2..206ea39f2 100644 --- a/Projects/AVRISP/Lib/TPI/TINYNVM.c +++ b/Projects/AVRISP/Lib/XPROG/TINYNVM.c diff --git a/Projects/AVRISP/Lib/TPI/TINYNVM.h b/Projects/AVRISP/Lib/XPROG/TINYNVM.h index eca3c98b8..eca3c98b8 100644 --- a/Projects/AVRISP/Lib/TPI/TINYNVM.h +++ b/Projects/AVRISP/Lib/XPROG/TINYNVM.h diff --git a/Projects/AVRISP/Lib/TPI/TPIProtocol.c b/Projects/AVRISP/Lib/XPROG/TPIProtocol.c index a95e94b60..a95e94b60 100644 --- a/Projects/AVRISP/Lib/TPI/TPIProtocol.c +++ b/Projects/AVRISP/Lib/XPROG/TPIProtocol.c diff --git a/Projects/AVRISP/Lib/TPI/TPIProtocol.h b/Projects/AVRISP/Lib/XPROG/TPIProtocol.h index 11894a333..11894a333 100644 --- a/Projects/AVRISP/Lib/TPI/TPIProtocol.h +++ b/Projects/AVRISP/Lib/XPROG/TPIProtocol.h diff --git a/Projects/AVRISP/Lib/TPI/TPITarget.c b/Projects/AVRISP/Lib/XPROG/TPITarget.c index 464d40305..f7943bfa1 100644 --- a/Projects/AVRISP/Lib/TPI/TPITarget.c +++ b/Projects/AVRISP/Lib/XPROG/TPITarget.c @@ -320,7 +320,7 @@ bool TPITarget_WaitWhileNVMBusBusy(void) /* Poll the STATUS register to check to see if NVM access has been enabled */
while (TimeoutMS)
{
- /* Send the LDCS command to read the TPI STATUS register to see the NVM bus is active */
+ /* Send the SLDCS command to read the TPI STATUS register to see the NVM bus is active */
TPITarget_SendByte(TPI_CMD_SLDCS | TPI_STATUS_REG);
if (TPITarget_ReceiveByte() & TPI_STATUS_NVM)
return true;
diff --git a/Projects/AVRISP/Lib/TPI/TPITarget.h b/Projects/AVRISP/Lib/XPROG/TPITarget.h index 596bdce21..596bdce21 100644 --- a/Projects/AVRISP/Lib/TPI/TPITarget.h +++ b/Projects/AVRISP/Lib/XPROG/TPITarget.h diff --git a/Projects/AVRISP/Lib/PDI/XMEGANVM.c b/Projects/AVRISP/Lib/XPROG/XMEGANVM.c index ed8719c4e..ed8719c4e 100644 --- a/Projects/AVRISP/Lib/PDI/XMEGANVM.c +++ b/Projects/AVRISP/Lib/XPROG/XMEGANVM.c diff --git a/Projects/AVRISP/Lib/PDI/XMEGANVM.h b/Projects/AVRISP/Lib/XPROG/XMEGANVM.h index c31c7e8f1..c31c7e8f1 100644 --- a/Projects/AVRISP/Lib/PDI/XMEGANVM.h +++ b/Projects/AVRISP/Lib/XPROG/XMEGANVM.h |