diff --git a/os/hal/ports/KINETIS/KL2x/pwm_lld.c b/os/hal/ports/KINETIS/KL2x/pwm_lld.c index 2f1713109..6e953a091 100644 --- a/os/hal/ports/KINETIS/KL2x/pwm_lld.c +++ b/os/hal/ports/KINETIS/KL2x/pwm_lld.c @@ -375,9 +375,6 @@ void pwm_lld_disable_periodic_notification(PWMDriver *pwmp) { void pwm_lld_enable_channel_notification(PWMDriver *pwmp, pwmchannel_t channel) { - osalDbgAssert(channel <= 5, - "pwm_lld_enable_channel_notification() #1, invalid channel"); - pwmp->tpm->C[channel].SC |= TPM_CnSC_CHIE; } @@ -395,9 +392,6 @@ void pwm_lld_enable_channel_notification(PWMDriver *pwmp, void pwm_lld_disable_channel_notification(PWMDriver *pwmp, pwmchannel_t channel) { - osalDbgAssert(channel <= 5, - "pwm_lld_disable_channel_notification() #1, invalid channel"); - pwmp->tpm->C[channel].SC &= ~TPM_CnSC_CHIE; }