From 0f559f01ba81e53561b66ca5d23bb83e4c589bc8 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Tue, 16 Dec 2014 16:15:51 +0100 Subject: [PATCH] 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 --- modules/base/scheduler/scheduler.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); } -- 2.39.5