From d3ed469f003db92d395bc9ce36deb02ffcb4ab62 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Thu, 20 Oct 2022 22:28:29 +0900 Subject: [PATCH] arch: cxd56xx: Fix compile warning in cxd56_pwm.c --- arch/arm/src/cxd56xx/cxd56_pwm.c | 5 +++++ 1 file changed, 5 insertions(+) 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