Re: Using PWM with less channels than defined in CONFIG_PWM_NCHANNELS

2021-07-21 Thread raiden00pl
For this reason, stm32_pwm.c has an additional condition checking whether the channel in 'struct pwm_info_s' is set: 4389 │ int i; > 4390 │ > 4391 │ for (i = 0; ret == OK && i < CONFIG_PWM_NCHANNELS; i++) > 4392 │ { > 4393 │ /* Set output if channel configured */ > 43

Using PWM with less channels than defined in CONFIG_PWM_NCHANNELS

2021-07-21 Thread Michal Lenc
Hello, currently most of the PWM drivers (STM32, NRF52, iMXRT  etc.) use for loop from 0 to CONFIG_PWM_NCHANNELS when setting multiple channels in function pwm_start, for example here in STM32 code .