]> git.droids-corp.org - aversive.git/commitdiff
scheduler: avoid using a poisoned macro
authorGregor Riepl <onitake@gmail.com>
Tue, 16 Dec 2014 15:15:51 +0000 (16:15 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 8 Feb 2015 21:34:19 +0000 (22:34 +0100)
Change the timer overflow interrupt name evaluation order in
base/scheduler to avoid hitting a poisened macro.

Signed-off-by: Gregor Riepl <onitake@gmail.com>
modules/base/scheduler/scheduler.c

index 13716e7ca25f6bf68f422ab5d559f244b3b4471f..268e1a9403ac40b61fd653f220fbb7de43b0c5c7 100644 (file)
@@ -61,11 +61,12 @@ void scheduler_init(void)
 
 
 #ifdef CONFIG_MODULE_SCHEDULER_TIMER0
+#ifndef TIMER0_OVF_vect
 #if defined(SIG_OVERFLOW0)
-SIGNAL(SIG_OVERFLOW0)
-#else
-SIGNAL(TIMER0_OVF_vect)
+#define TIMER0_OVF_vect SIG_OVERFLOW0
+#endif
 #endif
+SIGNAL(TIMER0_OVF_vect)
 {
        scheduler_interrupt();
 }