From 397a9425112da60c58068a007c58e73d96c251db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Thu, 14 Jan 2016 07:54:35 +0100 Subject: [PATCH] boards/nucleo-f401: Update to match timer_init API change --- boards/nucleo-f401/include/periph_conf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/nucleo-f401/include/periph_conf.h b/boards/nucleo-f401/include/periph_conf.h index 2988ad7c66a99..9864839bc2df3 100644 --- a/boards/nucleo-f401/include/periph_conf.h +++ b/boards/nucleo-f401/include/periph_conf.h @@ -60,7 +60,7 @@ extern "C" { /* Timer 0 configuration */ #define TIMER_0_DEV TIM2 #define TIMER_0_CHANNELS 4 -#define TIMER_0_PRESCALER (83U) +#define TIMER_0_FREQ (CLOCK_CORECLOCK) #define TIMER_0_MAX_VALUE (0xffffffff) #define TIMER_0_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_TIM2EN) #define TIMER_0_ISR isr_tim2 @@ -69,7 +69,7 @@ extern "C" { /* Timer 1 configuration */ #define TIMER_1_DEV TIM5 #define TIMER_1_CHANNELS 4 -#define TIMER_1_PRESCALER (83U) +#define TIMER_1_FREQ (CLOCK_CORECLOCK) #define TIMER_1_MAX_VALUE (0xffffffff) #define TIMER_1_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_TIM5EN) #define TIMER_1_ISR isr_tim5