aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-30 11:08:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-30 11:08:16 +0000
commit292167e13c2d7bbc6922e9fc4e3cdd7b8fab80aa (patch)
treed853f1ce2505550c074e2548681e4303ca524a57 /os/hal/ports/STM32
parent3ecd613b00e7364c09f6d8f67ffe21bd0e21b5e6 (diff)
downloadChibiOS-292167e13c2d7bbc6922e9fc4e3cdd7b8fab80aa.tar.gz
ChibiOS-292167e13c2d7bbc6922e9fc4e3cdd7b8fab80aa.tar.bz2
ChibiOS-292167e13c2d7bbc6922e9fc4e3cdd7b8fab80aa.zip
Fixed bug #449.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6582 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r--os/hal/ports/STM32/TIMv1/stm32_tim.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/TIMv1/stm32_tim.h b/os/hal/ports/STM32/TIMv1/stm32_tim.h
index ce0274c33..b5b7e7809 100644
--- a/os/hal/ports/STM32/TIMv1/stm32_tim.h
+++ b/os/hal/ports/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)
/** @} */