Home
last modified time | relevance | path

Searched refs:timOcInitStruct (Results 1 – 1 of 1) sorted by relevance

/drivers/hdf_core/adapter/platform/pwm/
Dpwm_stm32f4xx.c61 LL_TIM_OC_InitTypeDef timOcInitStruct; member
458 pwmCfg->timOcInitStruct.OCMode = LL_TIM_OCMODE_PWM1; // PWM1 mode
459 pwmCfg->timOcInitStruct.OCState = LL_TIM_OCSTATE_DISABLE;
460 pwmCfg->timOcInitStruct.CompareValue = arg->duty;
462 pwmCfg->timOcInitStruct.OCPolarity = LL_TIM_OCPOLARITY_HIGH;
464 pwmCfg->timOcInitStruct.OCPolarity = LL_TIM_OCPOLARITY_LOW;
466 pwmCfg->timOcInitStruct.OCIdleState = LL_TIM_OCPOLARITY_LOW;
468 LL_TIM_OC_Init(g_stTimMap[arg->pwmTim], g_stChannelMap[arg->pwmCh], &pwmCfg->timOcInitStruct);