From c72f3d588a637101262d5e2b276dc6cc5d926a6d Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 14 Oct 2015 21:52:54 +0000 Subject: Surround all macro parameters with () All the macro arguments that are user supplied, or potentially, wrap properly in () as good practice. Probably missed one or two, and a lot of them are possibly unnecessary, but it's straightforward to just do it always. Fixes github issue #321 --- include/libopencm3/stm32/common/timer_common_f24.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libopencm3/stm32/common/timer_common_f24.h') diff --git a/include/libopencm3/stm32/common/timer_common_f24.h b/include/libopencm3/stm32/common/timer_common_f24.h index 67ba593c..6f483d86 100644 --- a/include/libopencm3/stm32/common/timer_common_f24.h +++ b/include/libopencm3/stm32/common/timer_common_f24.h @@ -41,7 +41,7 @@ specific memorymap.h header before including this header file.*/ */ /* Timer 2/5 option register (TIMx_OR) */ -#define TIM_OR(tim_base) MMIO32(tim_base + 0x50) +#define TIM_OR(tim_base) MMIO32((tim_base) + 0x50) #define TIM2_OR TIM_OR(TIM2) #define TIM5_OR TIM_OR(TIM5) -- cgit v1.2.3