From 03ee1dcc181977a44af9a43906fb1d41055ab713 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 8 Dec 2009 15:33:39 +0000 Subject: Updated reports. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1395 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/pwm_lld.c | 4 ++++ os/hal/platforms/STM32/pwm_lld.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'os/hal/platforms') diff --git a/os/hal/platforms/STM32/pwm_lld.c b/os/hal/platforms/STM32/pwm_lld.c index 308556251..894123676 100644 --- a/os/hal/platforms/STM32/pwm_lld.c +++ b/os/hal/platforms/STM32/pwm_lld.c @@ -27,6 +27,8 @@ #include "ch.h" #include "hal.h" +#if CH_HAL_USE_PWM || defined(__DOXYGEN__) + /*===========================================================================*/ /* Low Level Driver exported variables. */ /*===========================================================================*/ @@ -130,4 +132,6 @@ void pwm_lld_disable_channel(PWMDriver *pwmp, pwmchannel_t channel) { } +#endif /* CH_HAL_USE_PWM */ + /** @} */ diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h index 8e57830f6..c5b7cedc6 100644 --- a/os/hal/platforms/STM32/pwm_lld.h +++ b/os/hal/platforms/STM32/pwm_lld.h @@ -27,6 +27,8 @@ #ifndef _PWM_LLD_H_ #define _PWM_LLD_H_ +#if CH_HAL_USE_PWM || defined(__DOXYGEN__) + /*===========================================================================*/ /* Driver constants. */ /*===========================================================================*/ @@ -100,6 +102,8 @@ extern "C" { } #endif +#endif /* CH_HAL_USE_PWM */ + #endif /* _PWM_LLD_H_ */ /** @} */ -- cgit v1.2.3