From 18b0d408a9e68cbc1ce36da89d74a799d7fc31de Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 24 Dec 2009 02:27:21 +0000 Subject: Remove serial driver use from the AVRISP project now that it is no longer needed. --- Projects/AVRISP/AVRISP.c | 1 - Projects/AVRISP/AVRISP.h | 1 - Projects/AVRISP/AVRISP.txt | 4 ++-- Projects/AVRISP/Lib/V2Protocol.c | 2 -- Projects/AVRISP/Lib/V2Protocol.h | 1 - Projects/AVRISP/Lib/XPROG/XPROGProtocol.c | 2 +- Projects/AVRISP/makefile | 1 - 7 files changed, 3 insertions(+), 9 deletions(-) (limited to 'Projects') diff --git a/Projects/AVRISP/AVRISP.c b/Projects/AVRISP/AVRISP.c index 48a90e3e4..c0572fca2 100644 --- a/Projects/AVRISP/AVRISP.c +++ b/Projects/AVRISP/AVRISP.c @@ -70,7 +70,6 @@ void SetupHardware(void) /* Hardware Initialization */ LEDs_Init(); USB_Init(); - Serial_Init(9600, true); #if defined(ADC) /* Initialize the ADC converter for VTARGET level detection on supported AVR models */ diff --git a/Projects/AVRISP/AVRISP.h b/Projects/AVRISP/AVRISP.h index cdd551636..a0f4d5e79 100644 --- a/Projects/AVRISP/AVRISP.h +++ b/Projects/AVRISP/AVRISP.h @@ -45,7 +45,6 @@ #include "Descriptors.h" #include - #include #include #include diff --git a/Projects/AVRISP/AVRISP.txt b/Projects/AVRISP/AVRISP.txt index 864946434..f39e68f2c 100644 --- a/Projects/AVRISP/AVRISP.txt +++ b/Projects/AVRISP/AVRISP.txt @@ -152,7 +152,7 @@ * * * - * 1 When PDI_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together + * 1 When XPROG_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together * via a pair of 300 ohm resistors, and the AVR's XCK pin becomes CLOCK. * * \section Sec_TPI TPI Connections @@ -196,7 +196,7 @@ * * * - * 1 When TPI_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together + * 1 When XPROG_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together * via a pair of 300 ohm resistors, and the AVR's XCK pin becomes CLOCK. * * \section SSec_Options Project Options diff --git a/Projects/AVRISP/Lib/V2Protocol.c b/Projects/AVRISP/Lib/V2Protocol.c index 0c4664e54..4f7904a21 100644 --- a/Projects/AVRISP/Lib/V2Protocol.c +++ b/Projects/AVRISP/Lib/V2Protocol.c @@ -51,8 +51,6 @@ 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 8cc4c3c68..db4d09f0a 100644 --- a/Projects/AVRISP/Lib/V2Protocol.h +++ b/Projects/AVRISP/Lib/V2Protocol.h @@ -39,7 +39,6 @@ /* Includes: */ #include #include - #include #include "../Descriptors.h" #include "V2ProtocolConstants.h" diff --git a/Projects/AVRISP/Lib/XPROG/XPROGProtocol.c b/Projects/AVRISP/Lib/XPROG/XPROGProtocol.c index d91941307..98530e9aa 100644 --- a/Projects/AVRISP/Lib/XPROG/XPROGProtocol.c +++ b/Projects/AVRISP/Lib/XPROG/XPROGProtocol.c @@ -44,7 +44,7 @@ uint32_t XPROG_Param_NVMBase = 0x010001C0; uint32_t XPROG_Param_EEPageSize; /** Currently selected XPROG programming protocol */ -uint8_t XPROG_SelectedProtocol; +uint8_t XPROG_SelectedProtocol = XPRG_PROTOCOL_PDI; /** Handler for the CMD_XPROG_SETMODE command, which sets the programmer-to-target protocol used for PDI/TPI diff --git a/Projects/AVRISP/makefile b/Projects/AVRISP/makefile index 8db6ac97c..261d12787 100644 --- a/Projects/AVRISP/makefile +++ b/Projects/AVRISP/makefile @@ -136,7 +136,6 @@ SRC = $(TARGET).c \ Lib/XPROG/XMEGANVM.c \ Lib/XPROG/TPITarget.c \ Lib/XPROG/TINYNVM.c \ - $(LUFA_PATH)/LUFA/Drivers/Peripheral/Serial.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/DevChapter9.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Endpoint.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Host.c \ -- cgit v1.2.3