Home
last modified time | relevance | path

Searched refs:tmpcr2 (Results 1 – 25 of 60) sorted by relevance

123

/hal_stm32-3.5.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_ll_tim.c566 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
581 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
593 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
596 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
619 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
724 uint32_t tmpcr2; in OC1Config() local
741 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
770 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
773 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
777 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_ll_tim.c587 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
602 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
614 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
617 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
640 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
744 uint32_t tmpcr2; in OC1Config() local
761 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
790 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
793 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
797 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_ll_tim.c587 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
602 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
614 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
617 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
640 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
745 uint32_t tmpcr2; in OC1Config() local
762 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
791 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
794 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
798 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_ll_tim.c606 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
621 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
633 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
636 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
659 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
764 uint32_t tmpcr2; in OC1Config() local
781 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
810 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
813 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
817 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_ll_tim.c590 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
605 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
617 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
620 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
643 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
774 uint32_t tmpcr2; in OC1Config() local
791 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
820 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
823 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
827 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_ll_tim.c585 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
600 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
612 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
615 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
638 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
769 uint32_t tmpcr2; in OC1Config() local
786 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
815 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
818 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
822 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_ll_tim.c617 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
632 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
644 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
647 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
670 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
805 uint32_t tmpcr2; in OC1Config() local
822 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
851 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
854 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
858 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
Dstm32g0xx_hal_tim.c5631 uint32_t tmpcr2; in HAL_TIM_ConfigTI1Input() local
5638 tmpcr2 = htim->Instance->CR2; in HAL_TIM_ConfigTI1Input()
5641 tmpcr2 &= ~TIM_CR2_TI1S; in HAL_TIM_ConfigTI1Input()
5644 tmpcr2 |= TI1_Selection; in HAL_TIM_ConfigTI1Input()
5647 htim->Instance->CR2 = tmpcr2; in HAL_TIM_ConfigTI1Input()
7022 uint32_t tmpcr2; in TIM_OC1_SetConfig() local
7030 tmpcr2 = TIMx->CR2; in TIM_OC1_SetConfig()
7066 tmpcr2 &= ~TIM_CR2_OIS1; in TIM_OC1_SetConfig()
7067 tmpcr2 &= ~TIM_CR2_OIS1N; in TIM_OC1_SetConfig()
7069 tmpcr2 |= OC_Config->OCIdleState; in TIM_OC1_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_ll_tim.c573 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
588 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
600 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
603 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
626 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
758 uint32_t tmpcr2; in OC1Config() local
775 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
804 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
807 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
811 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
Dstm32wlxx_hal_tim.c5612 uint32_t tmpcr2; in HAL_TIM_ConfigTI1Input() local
5619 tmpcr2 = htim->Instance->CR2; in HAL_TIM_ConfigTI1Input()
5622 tmpcr2 &= ~TIM_CR2_TI1S; in HAL_TIM_ConfigTI1Input()
5625 tmpcr2 |= TI1_Selection; in HAL_TIM_ConfigTI1Input()
5628 htim->Instance->CR2 = tmpcr2; in HAL_TIM_ConfigTI1Input()
6992 uint32_t tmpcr2; in TIM_OC1_SetConfig() local
7000 tmpcr2 = TIMx->CR2; in TIM_OC1_SetConfig()
7036 tmpcr2 &= ~TIM_CR2_OIS1; in TIM_OC1_SetConfig()
7037 tmpcr2 &= ~TIM_CR2_OIS1N; in TIM_OC1_SetConfig()
7039 tmpcr2 |= OC_Config->OCIdleState; in TIM_OC1_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_ll_tim.c577 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
592 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
604 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
607 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
630 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
761 uint32_t tmpcr2; in OC1Config() local
778 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
807 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
810 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
814 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
Dstm32wbxx_hal_tim.c5623 uint32_t tmpcr2; in HAL_TIM_ConfigTI1Input() local
5630 tmpcr2 = htim->Instance->CR2; in HAL_TIM_ConfigTI1Input()
5633 tmpcr2 &= ~TIM_CR2_TI1S; in HAL_TIM_ConfigTI1Input()
5636 tmpcr2 |= TI1_Selection; in HAL_TIM_ConfigTI1Input()
5639 htim->Instance->CR2 = tmpcr2; in HAL_TIM_ConfigTI1Input()
7003 uint32_t tmpcr2; in TIM_OC1_SetConfig() local
7012 tmpcr2 = TIMx->CR2; in TIM_OC1_SetConfig()
7048 tmpcr2 &= ~TIM_CR2_OIS1; in TIM_OC1_SetConfig()
7049 tmpcr2 &= ~TIM_CR2_OIS1N; in TIM_OC1_SetConfig()
7051 tmpcr2 |= OC_Config->OCIdleState; in TIM_OC1_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_ll_tim.c641 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
656 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
668 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
671 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
694 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
823 uint32_t tmpcr2; in OC1Config() local
840 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
869 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
872 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
876 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
Dstm32f7xx_hal_tim.c5597 uint32_t tmpcr2; in HAL_TIM_ConfigTI1Input() local
5604 tmpcr2 = htim->Instance->CR2; in HAL_TIM_ConfigTI1Input()
5607 tmpcr2 &= ~TIM_CR2_TI1S; in HAL_TIM_ConfigTI1Input()
5610 tmpcr2 |= TI1_Selection; in HAL_TIM_ConfigTI1Input()
5613 htim->Instance->CR2 = tmpcr2; in HAL_TIM_ConfigTI1Input()
6988 uint32_t tmpcr2; in TIM_OC1_SetConfig() local
6996 tmpcr2 = TIMx->CR2; in TIM_OC1_SetConfig()
7032 tmpcr2 &= ~TIM_CR2_OIS1; in TIM_OC1_SetConfig()
7033 tmpcr2 &= ~TIM_CR2_OIS1N; in TIM_OC1_SetConfig()
7035 tmpcr2 |= OC_Config->OCIdleState; in TIM_OC1_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_ll_tim.c614 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
629 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
641 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
644 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
667 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
796 uint32_t tmpcr2; in OC1Config() local
813 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
842 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
845 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
849 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_ll_tim.c608 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
623 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
635 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
638 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
661 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
793 uint32_t tmpcr2; in OC1Config() local
810 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
839 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
842 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
846 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_ll_tim.c627 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
642 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
654 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
657 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
680 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
811 uint32_t tmpcr2; in OC1Config() local
828 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
857 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
860 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
864 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_ll_tim.c662 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
677 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
689 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
692 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
715 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
846 uint32_t tmpcr2; in OC1Config() local
863 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
892 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
895 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
899 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_ll_tim.c625 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
640 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
652 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
655 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
678 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
813 uint32_t tmpcr2; in OC1Config() local
830 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
859 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
862 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
866 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_ll_tim.c653 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
668 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
680 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
683 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
706 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
851 uint32_t tmpcr2; in OC1Config() local
868 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
897 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
900 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
904 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_ll_tim.c689 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
704 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
716 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
719 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
742 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
877 uint32_t tmpcr2; in OC1Config() local
894 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
923 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
926 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
930 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_ll_tim.c642 uint32_t tmpcr2; in LL_TIM_HALLSENSOR_Init() local
657 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in LL_TIM_HALLSENSOR_Init()
669 tmpcr2 |= TIM_CR2_TI1S; in LL_TIM_HALLSENSOR_Init()
672 tmpcr2 |= LL_TIM_TRGO_OC2REF; in LL_TIM_HALLSENSOR_Init()
695 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in LL_TIM_HALLSENSOR_Init()
828 uint32_t tmpcr2; in OC1Config() local
845 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
874 MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); in OC1Config()
877 MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); in OC1Config()
881 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
[all …]
Dstm32mp1xx_hal_tim.c4760 uint32_t tmpcr2; in HAL_TIM_ConfigTI1Input() local
4767 tmpcr2 = htim->Instance->CR2; in HAL_TIM_ConfigTI1Input()
4770 tmpcr2 &= ~TIM_CR2_TI1S; in HAL_TIM_ConfigTI1Input()
4773 tmpcr2 |= TI1_Selection; in HAL_TIM_ConfigTI1Input()
4776 htim->Instance->CR2 = tmpcr2; in HAL_TIM_ConfigTI1Input()
5998 uint32_t tmpcr2; in TIM_OC1_SetConfig() local
6006 tmpcr2 = TIMx->CR2; in TIM_OC1_SetConfig()
6042 tmpcr2 &= ~TIM_CR2_OIS1; in TIM_OC1_SetConfig()
6043 tmpcr2 &= ~TIM_CR2_OIS1N; in TIM_OC1_SetConfig()
6045 tmpcr2 |= OC_Config->OCIdleState; in TIM_OC1_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_ll_tim.c479 uint32_t tmpcr2; in OC1Config() local
494 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
512 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
538 uint32_t tmpcr2; in OC2Config() local
553 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC2Config()
571 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC2Config()
597 uint32_t tmpcr2; in OC3Config() local
612 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC3Config()
630 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC3Config()
656 uint32_t tmpcr2; in OC4Config() local
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_ll_tim.c502 uint32_t tmpcr2; in OC1Config() local
517 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC1Config()
535 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC1Config()
561 uint32_t tmpcr2; in OC2Config() local
576 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC2Config()
594 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC2Config()
620 uint32_t tmpcr2; in OC3Config() local
635 tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); in OC3Config()
653 LL_TIM_WriteReg(TIMx, CR2, tmpcr2); in OC3Config()
679 uint32_t tmpcr2; in OC4Config() local
[all …]

123