diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-09 10:48:08 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-09 10:48:08 +0000 |
commit | b7985b957d0c259e9869763199c5cbf8ae9f4709 (patch) | |
tree | cb1cff3966c06b52cbba51cceb4b659dd9f25562 /os/hal/templates/pwm_lld.h | |
parent | ce7f7103df5f634f7b57d90e115c5824adcb68a0 (diff) | |
download | ChibiOS-b7985b957d0c259e9869763199c5cbf8ae9f4709.tar.gz ChibiOS-b7985b957d0c259e9869763199c5cbf8ae9f4709.tar.bz2 ChibiOS-b7985b957d0c259e9869763199c5cbf8ae9f4709.zip |
MISRA pass on low level device drivers templates.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7739 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/pwm_lld.h')
-rw-r--r-- | os/hal/templates/pwm_lld.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/os/hal/templates/pwm_lld.h b/os/hal/templates/pwm_lld.h index 70c2f1f88..e37598a0c 100644 --- a/os/hal/templates/pwm_lld.h +++ b/os/hal/templates/pwm_lld.h @@ -25,7 +25,7 @@ #ifndef _PWM_LLD_H_
#define _PWM_LLD_H_
-#if HAL_USE_PWM || defined(__DOXYGEN__)
+#if (HAL_USE_PWM == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -45,13 +45,12 @@ * @{
*/
/**
- * @brief If advanced timer features switch.
- * @details If set to @p TRUE the advanced features for TIM1 and TIM8 are
- * enabled.
- * @note The default is @p TRUE.
+ * @brief PWMD1 driver enable switch.
+ * @details If set to @p TRUE the support for PWM1 is included.
+ * @note The default is @p FALSE.
*/
-#if !defined(PLATFORM_PWM_USE_ADVANCED) || defined(__DOXYGEN__)
-#define PLATFORM_PWM_USE_ADVANCED FALSE
+#if !defined(PLATFORM_PWM_USE_PWM1) || defined(__DOXYGEN__)
+#define PLATFORM_PWM_USE_PWM1 FALSE
#endif
/** @} */
@@ -185,7 +184,7 @@ struct PWMDriver { /* External declarations. */
/*===========================================================================*/
-#if PLATFORM_PWM_USE_PWM1 && !defined(__DOXYGEN__)
+#if (PLATFORM_PWM_USE_PWM1 == TRUE) && !defined(__DOXYGEN__)
extern PWMDriver PWMD1;
#endif
@@ -209,7 +208,7 @@ extern "C" { }
#endif
-#endif /* HAL_USE_PWM */
+#endif /* HAL_USE_PWM == TRUE */
#endif /* _PWM_LLD_H_ */
|