Home
last modified time | relevance | path

Searched refs:tmpccer (Results 1 – 25 of 70) sorted by relevance

123

/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_ll_tim.c498 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
519 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
534 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
535 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
536 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
537 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
546 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
592 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
611 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
638 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_ll_tim.c549 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
570 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
585 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
586 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
587 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
588 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
597 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
643 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
662 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
689 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/
Dstm32u0xx_ll_tim.c502 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
523 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
538 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
539 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
540 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
541 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
550 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
596 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
615 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
642 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_ll_tim.c481 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
502 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
517 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
518 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
519 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
520 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
529 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
575 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
594 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
621 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_ll_tim.c493 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
514 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
529 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
530 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
531 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
532 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
541 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
587 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
606 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
633 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_ll_tim.c485 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
506 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
521 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
522 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
523 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
524 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
533 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
579 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
598 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
625 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_ll_tim.c516 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
537 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
552 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
553 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
554 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
555 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
564 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
610 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
629 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
656 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_ll_tim.c522 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
543 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
558 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
559 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
560 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
561 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
570 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
616 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
635 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
662 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_ll_tim.c525 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
546 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
561 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
562 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
563 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
564 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
573 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
619 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
638 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
665 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/
Dstm32h7rsxx_ll_tim.c539 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
560 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
575 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
576 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
577 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
578 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
587 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
633 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
652 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
679 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_ll_tim.c535 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
556 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
571 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
572 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
573 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
574 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
583 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
629 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
648 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
675 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/src/
Dstm32n6xx_ll_tim.c576 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
597 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
612 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
613 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
614 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
615 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
624 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
670 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
689 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
716 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_ll_tim.c533 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
554 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
569 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
570 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
571 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
572 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
581 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
627 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
646 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
673 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_ll_tim.c570 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
591 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
606 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
607 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
608 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
609 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
618 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
664 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
683 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
710 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_ll_tim.c598 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
619 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
634 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
635 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
636 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
637 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
646 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
693 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
712 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
739 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_ll_tim.c552 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
573 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
588 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
589 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
590 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
591 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
600 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
644 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
663 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
690 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
Dstm32mp1xx_hal_tim.c2611 uint32_t tmpccer; in HAL_TIM_Encoder_Init() local
2671 tmpccer = htim->Instance->CCER; in HAL_TIM_Encoder_Init()
2687 tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); in HAL_TIM_Encoder_Init()
2688 tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); in HAL_TIM_Encoder_Init()
2689 tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); in HAL_TIM_Encoder_Init()
2698 htim->Instance->CCER = tmpccer; in HAL_TIM_Encoder_Init()
5997 uint32_t tmpccer; in TIM_OC1_SetConfig() local
6004 tmpccer = TIMx->CCER; in TIM_OC1_SetConfig()
6018 tmpccer &= ~TIM_CCER_CC1P; in TIM_OC1_SetConfig()
6020 tmpccer |= OC_Config->OCPolarity; in TIM_OC1_SetConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_ll_tim.c561 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
582 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
597 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
598 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
599 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
600 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
609 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
655 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
674 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
701 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32wb0x/drivers/src/
Dstm32wb0x_ll_tim.c496 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
517 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
533 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
535 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P); in LL_TIM_ENCODER_Init()
537 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
538 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
539 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
548 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
680 uint32_t tmpccer; in OC1Config() local
693 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in OC1Config()
[all …]
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_ll_tim.c495 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
516 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
531 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
532 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
533 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
534 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
543 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
589 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
608 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
635 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_ll_tim.c495 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
516 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
531 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
532 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
533 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
534 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
543 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
589 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
608 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
635 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_ll_tim.c474 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
495 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
510 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
511 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
512 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
513 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
522 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
568 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
587 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
614 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_ll_tim.c515 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
536 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
551 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
552 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
553 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
554 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
563 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
607 uint32_t tmpccer; in LL_TIM_HALLSENSOR_Init() local
626 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_HALLSENSOR_Init()
653 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_HALLSENSOR_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_ll_tim.c402 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
423 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
438 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
439 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
440 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
441 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
450 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
478 uint32_t tmpccer; in OC1Config() local
491 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in OC1Config()
506 MODIFY_REG(tmpccer, TIM_CCER_CC1P, TIM_OCInitStruct->OCPolarity); in OC1Config()
[all …]
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_ll_tim.c425 uint32_t tmpccer; in LL_TIM_ENCODER_Init() local
446 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in LL_TIM_ENCODER_Init()
461 tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); in LL_TIM_ENCODER_Init()
462 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); in LL_TIM_ENCODER_Init()
463 tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); in LL_TIM_ENCODER_Init()
464 tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); in LL_TIM_ENCODER_Init()
473 LL_TIM_WriteReg(TIMx, CCER, tmpccer); in LL_TIM_ENCODER_Init()
501 uint32_t tmpccer; in OC1Config() local
514 tmpccer = LL_TIM_ReadReg(TIMx, CCER); in OC1Config()
529 MODIFY_REG(tmpccer, TIM_CCER_CC1P, TIM_OCInitStruct->OCPolarity); in OC1Config()
[all …]

123