diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-05-02 06:02:54 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-05-02 06:02:54 +0000 |
commit | a5e79333e5769f92558bf20458c165e2582a0cb6 (patch) | |
tree | a5e638447ec31ffd110079c19880def97d3255b3 /Projects/AVRISP-MKII/Lib/V2Protocol.c | |
parent | 3d28d53c3e2ae529933283e63a8b05f2ab1ce2be (diff) | |
download | lufa-a5e79333e5769f92558bf20458c165e2582a0cb6.tar.gz lufa-a5e79333e5769f92558bf20458c165e2582a0cb6.tar.bz2 lufa-a5e79333e5769f92558bf20458c165e2582a0cb6.zip |
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.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.c')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/V2Protocol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.c b/Projects/AVRISP-MKII/Lib/V2Protocol.c index 63b7294c0..035c8a5b3 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)
{
|