From 7529ce9c2b90eaaff23144c76614859ea50540f4 Mon Sep 17 00:00:00 2001 From: Salvatore De Dominicis Date: Sat, 11 Nov 2017 20:51:38 +0000 Subject: [PATCH] cpu: pic32: Fix use of timer 4/5 for rtimer The rtimer is configured to use timer 4/5 but the wrong timer number is passed to TIMER_INTERRUPT, preventing rtimer to work. This patch correctly passes timer number 5 to the TIMER_INTERRUPT macro. Signed-off-by: Salvatore De Dominicis --- cpu/pic32/rtimer-arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/pic32/rtimer-arch.c b/cpu/pic32/rtimer-arch.c index fda75ddf589..83e66aa2e5d 100644 --- a/cpu/pic32/rtimer-arch.c +++ b/cpu/pic32/rtimer-arch.c @@ -107,6 +107,6 @@ rtimer_arch_schedule(rtimer_clock_t t) } /*---------------------------------------------------------------------------*/ -TIMER_INTERRUPT(3, rtimer_callback); +TIMER_INTERRUPT(5, rtimer_callback); /** @} */