diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-01-06 16:14:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-01-06 16:14:40 +0000 |
commit | 3a21dac552115e2ae053b2af5f49f044ccfec621 (patch) | |
tree | fe79c586f146c05553400f288fcd84bfa6eeb793 /os/hal/platforms | |
parent | 2db4cf0e6db4900c8369e16cf998d1437abc7fcf (diff) | |
download | ChibiOS-3a21dac552115e2ae053b2af5f49f044ccfec621.tar.gz ChibiOS-3a21dac552115e2ae053b2af5f49f044ccfec621.tar.bz2 ChibiOS-3a21dac552115e2ae053b2af5f49f044ccfec621.zip |
Fixed bug 3152482.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2599 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r-- | os/hal/platforms/STM32/pwm_lld.c | 10 | ||||
-rw-r--r-- | os/hal/platforms/STM32/pwm_lld.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.c b/os/hal/platforms/STM32/pwm_lld.c index 6970217e7..f78896e95 100644 --- a/os/hal/platforms/STM32/pwm_lld.c +++ b/os/hal/platforms/STM32/pwm_lld.c @@ -50,7 +50,7 @@ * @brief PWM1 driver identifier.
* @note The driver PWM1 allocates the complex timer TIM1 when enabled.
*/
-#if defined(STM32_PWM_USE_TIM1) || defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM1 || defined(__DOXYGEN__)
PWMDriver PWMD1;
#endif
@@ -58,7 +58,7 @@ PWMDriver PWMD1; * @brief PWM2 driver identifier.
* @note The driver PWM2 allocates the timer TIM2 when enabled.
*/
-#if defined(STM32_PWM_USE_TIM2) || defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM2 || defined(__DOXYGEN__)
PWMDriver PWMD2;
#endif
@@ -66,7 +66,7 @@ PWMDriver PWMD2; * @brief PWM3 driver identifier.
* @note The driver PWM3 allocates the timer TIM3 when enabled.
*/
-#if defined(STM32_PWM_USE_TIM3) || defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM3 || defined(__DOXYGEN__)
PWMDriver PWMD3;
#endif
@@ -74,7 +74,7 @@ PWMDriver PWMD3; * @brief PWM4 driver identifier.
* @note The driver PWM4 allocates the timer TIM4 when enabled.
*/
-#if defined(STM32_PWM_USE_TIM4) || defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM4 || defined(__DOXYGEN__)
PWMDriver PWMD4;
#endif
@@ -82,7 +82,7 @@ PWMDriver PWMD4; * @brief PWM5 driver identifier.
* @note The driver PWM5 allocates the timer TIM5 when enabled.
*/
-#if defined(STM32_PWM_USE_TIM5) || defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM5 || defined(__DOXYGEN__)
PWMDriver PWMD5;
#endif
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h index 7b1ad3286..1e9dd855a 100644 --- a/os/hal/platforms/STM32/pwm_lld.h +++ b/os/hal/platforms/STM32/pwm_lld.h @@ -344,23 +344,23 @@ struct PWMDriver { /* External declarations. */
/*===========================================================================*/
-#if defined(STM32_PWM_USE_TIM1) && !defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM1 && !defined(__DOXYGEN__)
extern PWMDriver PWMD1;
#endif
-#if defined(STM32_PWM_USE_TIM2) && !defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM2 && !defined(__DOXYGEN__)
extern PWMDriver PWMD2;
#endif
-#if defined(STM32_PWM_USE_TIM3) && !defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM3 && !defined(__DOXYGEN__)
extern PWMDriver PWMD3;
#endif
-#if defined(STM32_PWM_USE_TIM4) && !defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM4 && !defined(__DOXYGEN__)
extern PWMDriver PWMD4;
#endif
-#if defined(STM32_PWM_USE_TIM5) && !defined(__DOXYGEN__)
+#if STM32_PWM_USE_TIM5 && !defined(__DOXYGEN__)
extern PWMDriver PWMD5;
#endif
|