From 36b3b9b4579809edc2f1fa07a79e51626a946a0d Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Wed, 26 Nov 2014 18:40:17 +0100 Subject: [PATCH] cpu/stm32f0: set hwtimer spin barrier value --- cpu/stm32f0/include/hwtimer_cpu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cpu/stm32f0/include/hwtimer_cpu.h b/cpu/stm32f0/include/hwtimer_cpu.h index 75bf11fa5e..7421bd93da 100644 --- a/cpu/stm32f0/include/hwtimer_cpu.h +++ b/cpu/stm32f0/include/hwtimer_cpu.h @@ -27,9 +27,10 @@ extern "C" { * @name Hardware timer configuration * @{ */ -#define HWTIMER_MAXTIMERS 4 /**< the CPU implementation supports 4 HW timers */ -#define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */ -#define HWTIMER_MAXTICKS (0xFFFFFFFF) /**< 32-bit timer */ +#define HWTIMER_MAXTIMERS (4U) /**< the CPU implementation supports 4 HW timers */ +#define HWTIMER_SPEED (1000000U) /**< the HW timer runs with 1MHz */ +#define HWTIMER_MAXTICKS (0xFFFFFFFF) /**< 32-bit timer */ +#define HWTIMER_SPIN_BARRIER (18U) /**< set spin barrier to at least 18 ticks */ /** @} */ #ifdef __cplusplus