Lines Matching refs:tmpccmr1

473   uint32_t tmpccmr1;  in LL_TIM_ENCODER_Init()  local
492 tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); in LL_TIM_ENCODER_Init()
498 tmpccmr1 &= (uint32_t)~(TIM_CCMR1_CC1S | TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC); in LL_TIM_ENCODER_Init()
499 tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC1ActiveInput >> 16U); in LL_TIM_ENCODER_Init()
500 tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC1Filter >> 16U); in LL_TIM_ENCODER_Init()
501 tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC1Prescaler >> 16U); in LL_TIM_ENCODER_Init()
504 tmpccmr1 &= (uint32_t)~(TIM_CCMR1_CC2S | TIM_CCMR1_IC2F | TIM_CCMR1_IC2PSC); in LL_TIM_ENCODER_Init()
505 tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC2ActiveInput >> 8U); in LL_TIM_ENCODER_Init()
506 tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC2Filter >> 8U); in LL_TIM_ENCODER_Init()
507 tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC2Prescaler >> 8U); in LL_TIM_ENCODER_Init()
519 LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); in LL_TIM_ENCODER_Init()
567 uint32_t tmpccmr1; in LL_TIM_HALLSENSOR_Init() local
584 tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); in LL_TIM_HALLSENSOR_Init()
604 tmpccmr1 &= (uint32_t)~(TIM_CCMR1_CC1S | TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC); in LL_TIM_HALLSENSOR_Init()
605 tmpccmr1 |= (uint32_t)(LL_TIM_ACTIVEINPUT_TRC >> 16U); in LL_TIM_HALLSENSOR_Init()
606 tmpccmr1 |= (uint32_t)(TIM_HallSensorInitStruct->IC1Filter >> 16U); in LL_TIM_HALLSENSOR_Init()
607 tmpccmr1 |= (uint32_t)(TIM_HallSensorInitStruct->IC1Prescaler >> 16U); in LL_TIM_HALLSENSOR_Init()
610 tmpccmr1 &= (uint32_t)~(TIM_CCMR1_OC2M | TIM_CCMR1_OC2FE | TIM_CCMR1_OC2PE | TIM_CCMR1_OC2CE); in LL_TIM_HALLSENSOR_Init()
611 tmpccmr1 |= (uint32_t)(LL_TIM_OCMODE_PWM2 << 8U); in LL_TIM_HALLSENSOR_Init()
625 LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); in LL_TIM_HALLSENSOR_Init()
721 uint32_t tmpccmr1; in OC1Config() local
741 tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); in OC1Config()
744 CLEAR_BIT(tmpccmr1, TIM_CCMR1_CC1S); in OC1Config()
747 MODIFY_REG(tmpccmr1, TIM_CCMR1_OC1M, TIM_OCInitStruct->OCMode); in OC1Config()
779 LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); in OC1Config()
800 uint32_t tmpccmr1; in OC2Config() local
820 tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); in OC2Config()
823 CLEAR_BIT(tmpccmr1, TIM_CCMR1_CC2S); in OC2Config()
826 MODIFY_REG(tmpccmr1, TIM_CCMR1_OC2M, TIM_OCInitStruct->OCMode << 8U); in OC2Config()
858 LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); in OC2Config()