aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/pwm_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/pwm_lld.h')
-rw-r--r--os/hal/templates/pwm_lld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/templates/pwm_lld.h b/os/hal/templates/pwm_lld.h
index 499d6e11c..1b0b38f75 100644
--- a/os/hal/templates/pwm_lld.h
+++ b/os/hal/templates/pwm_lld.h
@@ -28,6 +28,8 @@
#ifndef _PWM_LLD_H_
#define _PWM_LLD_H_
+#if HAL_USE_PWM || defined(__DOXYGEN__)
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@@ -184,6 +186,8 @@ extern "C" {
}
#endif
+#endif /* HAL_USE_PWM */
+
#endif /* _PWM_LLD_H_ */
/** @} */