diff --git a/boards/nucleo-f103/include/board.h b/boards/nucleo-f103/include/board.h index 977e053d9e..7641bd1b37 100755 --- a/boards/nucleo-f103/include/board.h +++ b/boards/nucleo-f103/include/board.h @@ -35,9 +35,8 @@ extern "C" { /** * @name xtimer configuration */ -#define XTIMER_MASK (0xffff0000) -#define XTIMER_BACKOFF 5 -#define XTIMER_SHIFT_ON_COMPARE (1) +#define XTIMER_MASK (0xffff0000) +#define XTIMER_BACKOFF 5 /** @} */ #ifdef __cplusplus diff --git a/cpu/stm32f1/periph/timer.c b/cpu/stm32f1/periph/timer.c index 30933f883a..e57d9b53cb 100644 --- a/cpu/stm32f1/periph/timer.c +++ b/cpu/stm32f1/periph/timer.c @@ -56,7 +56,7 @@ int timer_init(tim_t tim, unsigned long freq, timer_cb_t cb, void *arg) dev(tim)->CR2 = 0; dev(tim)->ARR = TIMER_MAXVAL; /* set prescaler */ - dev(tim)->PSC = (((CLOCK_CORECLOCK) / freq) - 1); + dev(tim)->PSC = ((CLOCK_CORECLOCK / freq) - 1); /* generate an update event to apply our configuration */ dev(tim)->EGR = TIM_EGR_UG;