From a5e79333e5769f92558bf20458c165e2582a0cb6 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 2 May 2010 06:02:54 +0000 Subject: Switch back to C based timeout ISR in the AVRISP project - assembly version was failing, and only one or two cycles could be shaved off the compiler generated code. --- Projects/AVRISP-MKII/Lib/V2Protocol.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.c') diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.c b/Projects/AVRISP-MKII/Lib/V2Protocol.c index 63b7294c0a..035c8a5b39 100644 --- a/Projects/AVRISP-MKII/Lib/V2Protocol.c +++ b/Projects/AVRISP-MKII/Lib/V2Protocol.c @@ -43,6 +43,12 @@ uint32_t CurrentAddress; bool MustSetAddress; +ISR(TIMER0_COMPA_vect, ISR_NOBLOCK) +{ + if (TimeoutMSRemaining) + TimeoutMSRemaining--; +} + /** Initializes the hardware and software associated with the V2 protocol command handling. */ void V2Protocol_Init(void) { -- cgit v1.2.3