By including user_config.h at the top of the file, it's possible to make configuration changes while using the unmodified code from the repository.
To make that also possible for both PWM_DEBUG and PWM_USE_NMI, include them in ifndef like already done for SDK_PWM_PERIOD_COMPAT_MODE and PWM_MAX_CHANNELS.
By including
user_config.h
at the top of the file, it's possible to make configuration changes while using the unmodified code from the repository.To make that also possible for both PWM_DEBUG and PWM_USE_NMI, include them in ifndef like already done for SDK_PWM_PERIOD_COMPAT_MODE and PWM_MAX_CHANNELS.