From: Gregor Riepl Date: Tue, 16 Dec 2014 15:15:51 +0000 (+0100) Subject: scheduler: avoid using a poisoned macro X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0f559f01ba81e53561b66ca5d23bb83e4c589bc8;p=aversive.git scheduler: avoid using a poisoned macro Change the timer overflow interrupt name evaluation order in base/scheduler to avoid hitting a poisened macro. Signed-off-by: Gregor Riepl --- diff --git a/modules/base/scheduler/scheduler.c b/modules/base/scheduler/scheduler.c index 13716e7..268e1a9 100644 --- a/modules/base/scheduler/scheduler.c +++ b/modules/base/scheduler/scheduler.c @@ -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(); }