/* Hardware Initialization */\r
LEDs_Init();\r
USB_Init();\r
- Serial_Init(9600, true);\r
\r
#if defined(ADC)\r
/* Initialize the ADC converter for VTARGET level detection on supported AVR models */\r
#include "Descriptors.h"\r
\r
#include <LUFA/Version.h>\r
- #include <LUFA/Drivers/Peripheral/Serial.h>\r
#include <LUFA/Drivers/Board/LEDs.h>\r
#include <LUFA/Drivers/USB/USB.h>\r
\r
* </tr>\r
* </table>\r
*\r
- * <b><sup>1</sup></b> <i>When PDI_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together\r
+ * <b><sup>1</sup></b> <i>When XPROG_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together\r
* via a pair of 300 ohm resistors, and the AVR's XCK pin becomes CLOCK.</i>\r
*\r
* \section Sec_TPI TPI Connections\r
* </tr>\r
* </table>\r
*\r
- * <b><sup>1</sup></b> <i>When TPI_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together\r
+ * <b><sup>1</sup></b> <i>When XPROG_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together\r
* via a pair of 300 ohm resistors, and the AVR's XCK pin becomes CLOCK.</i>\r
*\r
* \section SSec_Options Project Options\r
{\r
uint8_t V2Command = Endpoint_Read_Byte();\r
\r
- Serial_TxByte(V2Command);\r
- \r
switch (V2Command)\r
{\r
case CMD_SIGN_ON:\r
/* Includes: */
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/SPI.h>\r
- #include <LUFA/Drivers/Peripheral/Serial.h>\r
\r
#include "../Descriptors.h"
#include "V2ProtocolConstants.h"\r
uint32_t XPROG_Param_EEPageSize;\r
\r
/** Currently selected XPROG programming protocol */\r
-uint8_t XPROG_SelectedProtocol;\r
+uint8_t XPROG_SelectedProtocol = XPRG_PROTOCOL_PDI;\r
\r
\r
/** Handler for the CMD_XPROG_SETMODE command, which sets the programmer-to-target protocol used for PDI/TPI\r
Lib/XPROG/XMEGANVM.c \\r
Lib/XPROG/TPITarget.c \\r
Lib/XPROG/TINYNVM.c \\r
- $(LUFA_PATH)/LUFA/Drivers/Peripheral/Serial.c \\r
$(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/DevChapter9.c \\r
$(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Endpoint.c \\r
$(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Host.c \\r