aboutsummaryrefslogtreecommitdiffstats
path: root/os/halnew/platforms/STM32/pwm_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-04 16:33:19 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-04 16:33:19 +0000
commit1d3b6b4198265ebd42a89f5d300c00c83ea4d179 (patch)
tree88913b694aeea0faf82b7f540fad63f48166f98b /os/halnew/platforms/STM32/pwm_lld.c
parentf64c767db9efbdb8ead800cb55296b96af3615cf (diff)
downloadChibiOS-1d3b6b4198265ebd42a89f5d300c00c83ea4d179.tar.gz
ChibiOS-1d3b6b4198265ebd42a89f5d300c00c83ea4d179.tar.bz2
ChibiOS-1d3b6b4198265ebd42a89f5d300c00c83ea4d179.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6078 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/halnew/platforms/STM32/pwm_lld.c')
-rw-r--r--os/halnew/platforms/STM32/pwm_lld.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/os/halnew/platforms/STM32/pwm_lld.c b/os/halnew/platforms/STM32/pwm_lld.c
index 1e9e0adfb..cd5bb4e57 100644
--- a/os/halnew/platforms/STM32/pwm_lld.c
+++ b/os/halnew/platforms/STM32/pwm_lld.c
@@ -22,7 +22,6 @@
* @{
*/
-#include "ch.h"
#include "hal.h"
#if HAL_USE_PWM || defined(__DOXYGEN__)
@@ -100,10 +99,9 @@ PWMDriver PWMD9;
/*===========================================================================*/
#if STM32_PWM_USE_TIM2 || STM32_PWM_USE_TIM3 || STM32_PWM_USE_TIM4 || \
- STM32_PWM_USE_TIM5 || STM32_PWM_USE_TIM8 || STM32_PWM_USE_TIM9 || \
- defined(__DOXYGEN__)
+ STM32_PWM_USE_TIM5 || STM32_PWM_USE_TIM9 || defined(__DOXYGEN__)
/**
- * @brief Common TIM2...TIM5 IRQ handler.
+ * @brief Common TIM2...TIM5,TIM9 IRQ handler.
* @note It is assumed that the various sources are only activated if the
* associated callback pointer is not equal to @p NULL in order to not
* perform an extra check in a potentially critical interrupt handler.
@@ -127,7 +125,7 @@ static void pwm_lld_serve_interrupt(PWMDriver *pwmp) {
if ((sr & TIM_SR_UIF) != 0)
pwmp->config->callback(pwmp);
}
-#endif /* STM32_PWM_USE_TIM2 || ... || STM32_PWM_USE_TIM5 */
+#endif
/*===========================================================================*/
/* Driver interrupt handlers. */