aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-30 11:08:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-30 11:08:56 +0000
commit96eb6db51902d5c31c7432145297678015a05c11 (patch)
tree9c79151016af4f73630ab37180015a1b72b53d3a /os
parent6d966b1a55f0295d5c8eb91a7c42ae5cc43a4938 (diff)
downloadChibiOS-96eb6db51902d5c31c7432145297678015a05c11.tar.gz
ChibiOS-96eb6db51902d5c31c7432145297678015a05c11.tar.bz2
ChibiOS-96eb6db51902d5c31c7432145297678015a05c11.zip
Fixed bug #449.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6583 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/TIMv1/stm32_tim.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32/TIMv1/stm32_tim.h b/os/hal/platforms/STM32/TIMv1/stm32_tim.h
index ce0274c33..b5b7e7809 100644
--- a/os/hal/platforms/STM32/TIMv1/stm32_tim.h
+++ b/os/hal/platforms/STM32/TIMv1/stm32_tim.h
@@ -181,7 +181,7 @@
#define STM32_TIM_CCMR1_OC1M_MASK ((7U << 4) | (1U << 16))
#define STM32_TIM_CCMR1_OC1M(n) ((((n) & 7) << 4) | \
- (((n) >> 2) << 16))
+ (((n) >> 3) << 16))
#define STM32_TIM_CCMR1_OC1CE (1U << 7)
@@ -193,7 +193,7 @@
#define STM32_TIM_CCMR1_OC2M_MASK ((7U << 12) | (1U << 24))
#define STM32_TIM_CCMR1_OC2M(n) ((((n) & 7) << 12) | \
- (((n) >> 2) << 24))
+ (((n) >> 3) << 24))
#define STM32_TIM_CCMR1_OC2CE (1U << 15)
/** @} */
@@ -227,7 +227,7 @@
#define STM32_TIM_CCMR2_OC3M_MASK ((7U << 4) | (1U << 16))
#define STM32_TIM_CCMR2_OC3M(n) ((((n) & 7) << 4) | \
- (((n) >> 2) << 16))
+ (((n) >> 3) << 16))
#define STM32_TIM_CCMR2_OC3CE (1U << 7)
@@ -239,7 +239,7 @@
#define STM32_TIM_CCMR2_OC4M_MASK ((7U << 12) | (1U << 24))
#define STM32_TIM_CCMR2_OC4M(n) ((((n) & 7) << 12) | \
- (((n) >> 2) << 24))
+ (((n) >> 3) << 24))
#define STM32_TIM_CCMR2_OC4CE (1U << 15)
/** @} */