diff options
author | Karl Palsson <karlp@tweak.net.au> | 2015-10-15 00:52:54 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2015-10-15 01:15:15 +0300 |
commit | c72f3d588a637101262d5e2b276dc6cc5d926a6d (patch) | |
tree | 6f2f6633adb0f80080b1a4e43b50dc43bb1cf75a /include/libopencm3/stm32/common/timer_common_f24.h | |
parent | c899273c62568fdb00fe54b80eab45c6c0917969 (diff) |
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
Diffstat (limited to 'include/libopencm3/stm32/common/timer_common_f24.h')
-rw-r--r-- | include/libopencm3/stm32/common/timer_common_f24.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |