aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP-MKII/Lib/V2Protocol.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-02-19 05:17:41 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-02-19 05:17:41 +0000
commitce8d0424b1a59bb2b0bd3ab8f69f4e4cf8c9930b (patch)
treeeaac9417ace4aef53a57a922828e421114a6a81e /Projects/AVRISP-MKII/Lib/V2Protocol.c
parent04d40897cf98469b39f1d97208a51deb65f70bc5 (diff)
downloadlufa-ce8d0424b1a59bb2b0bd3ab8f69f4e4cf8c9930b.tar.gz
lufa-ce8d0424b1a59bb2b0bd3ab8f69f4e4cf8c9930b.tar.bz2
lufa-ce8d0424b1a59bb2b0bd3ab8f69f4e4cf8c9930b.zip
AVRISP programmer project now has a more robust timeout system, allowing for a doubling of the software USART speed for PDI and TPI programming.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.c')
-rw-r--r--Projects/AVRISP-MKII/Lib/V2Protocol.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.c b/Projects/AVRISP-MKII/Lib/V2Protocol.c
index 8d8f2003f..cea42eae5 100644
--- a/Projects/AVRISP-MKII/Lib/V2Protocol.c
+++ b/Projects/AVRISP-MKII/Lib/V2Protocol.c
@@ -42,14 +42,6 @@ uint32_t CurrentAddress;
/** Flag to indicate that the next read/write operation must update the device's current address */
bool MustSetAddress;
-
-/** ISR for the management of the command execution timeout counter */
-ISR(TIMER0_COMPA_vect, ISR_BLOCK)
-{
- if (TimeoutMSRemaining)
- TimeoutMSRemaining--;
-}
-
/** Initializes the hardware and software associated with the V2 protocol command handling. */
void V2Protocol_Init(void)
{
@@ -76,10 +68,6 @@ void V2Protocol_ProcessCommand(void)
{
uint8_t V2Command = Endpoint_Read_Byte();
- /* Set total command processing timeout value, enable timeout management interrupt */
- TimeoutMSRemaining = COMMAND_TIMEOUT_MS;
- TIMSK0 |= (1 << OCIE0A);
-
switch (V2Command)
{
case CMD_SIGN_ON:
@@ -139,9 +127,6 @@ void V2Protocol_ProcessCommand(void)
V2Protocol_UnknownCommand(V2Command);
break;
}
-
- /* Disable timeout management interrupt once processing has completed */
- TIMSK0 &= ~(1 << OCIE0A);
Endpoint_WaitUntilReady();
Endpoint_SetEndpointDirection(ENDPOINT_DIR_OUT);