Lines Matching refs:oc_init
388 LL_TIM_OC_InitTypeDef oc_init; in pwm_stm32_set_cycles() local
390 LL_TIM_OC_StructInit(&oc_init); in pwm_stm32_set_cycles()
392 oc_init.OCMode = LL_TIM_OCMODE_PWM1; in pwm_stm32_set_cycles()
397 oc_init.OCNState = LL_TIM_OCSTATE_ENABLE; in pwm_stm32_set_cycles()
398 oc_init.OCNPolarity = get_polarity(flags); in pwm_stm32_set_cycles()
401 oc_init.OCState = LL_TIM_CC_IsEnabledChannel(cfg->timer, ll_channel) in pwm_stm32_set_cycles()
404 oc_init.OCPolarity = LL_TIM_OC_GetPolarity(cfg->timer, ll_channel); in pwm_stm32_set_cycles()
406 oc_init.OCState = LL_TIM_OCSTATE_ENABLE; in pwm_stm32_set_cycles()
407 oc_init.OCPolarity = get_polarity(flags); in pwm_stm32_set_cycles()
411 oc_init.OCNState = in pwm_stm32_set_cycles()
415 oc_init.OCNPolarity = in pwm_stm32_set_cycles()
421 oc_init.OCState = LL_TIM_OCSTATE_ENABLE; in pwm_stm32_set_cycles()
422 oc_init.OCPolarity = get_polarity(flags); in pwm_stm32_set_cycles()
424 oc_init.CompareValue = pulse_cycles; in pwm_stm32_set_cycles()
436 if (LL_TIM_OC_Init(cfg->timer, ll_channel, &oc_init) != SUCCESS) { in pwm_stm32_set_cycles()