diff --git a/arch/arm/src/cxd56xx/cxd56_pwm.c b/arch/arm/src/cxd56xx/cxd56_pwm.c index 41e8e9b361..78fa4af0bc 100644 --- a/arch/arm/src/cxd56xx/cxd56_pwm.c +++ b/arch/arm/src/cxd56xx/cxd56_pwm.c @@ -39,6 +39,9 @@ #include "cxd56_clock.h" #include "cxd56_pwm.h" +#if defined(CONFIG_CXD56_PWM0) || defined(CONFIG_CXD56_PWM1) || \ + defined(CONFIG_CXD56_PWM2) || defined(CONFIG_CXD56_PWM3) + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -525,3 +528,5 @@ struct pwm_lowerhalf_s *cxd56_pwminitialize(uint32_t channel) return (struct pwm_lowerhalf_s *)pwmch; } + +#endif