Home
last modified time | relevance | path

Searched refs:RCC_ClkInitStruct (Results 1 – 25 of 38) sorted by relevance

12

/hal_stm32-3.7.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_rcc.c922 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
929 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
935 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
959 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1) in HAL_RCC_ClockConfig()
962 if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE)) in HAL_RCC_ClockConfig()
964 assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider)); in HAL_RCC_ClockConfig()
965 MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider); in HAL_RCC_ClockConfig()
968 if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->CDCFGR1 & RCC_CDCFGR1_CDPPRE)) in HAL_RCC_ClockConfig()
970 assert_param(IS_RCC_CDPCLK1(RCC_ClkInitStruct->APB3CLKDivider)); in HAL_RCC_ClockConfig()
971 MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDPPRE, RCC_ClkInitStruct->APB3CLKDivider); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32h7rsxx/drivers/src/
Dstm32h7rsxx_hal_rcc.c882 HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLaten… in HAL_RCC_ClockConfig() argument
888 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
894 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
919 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
921 assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); in HAL_RCC_ClockConfig()
922 if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->APBCFGR & RCC_APBCFGR_PPRE1)) in HAL_RCC_ClockConfig()
924 MODIFY_REG(RCC->APBCFGR, RCC_APBCFGR_PPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); in HAL_RCC_ClockConfig()
929 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) in HAL_RCC_ClockConfig()
931 assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); in HAL_RCC_ClockConfig()
932 if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->APBCFGR & RCC_APBCFGR_PPRE2)) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_rcc.c925 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
930 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
936 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
964 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
966 assert_param(IS_RCC_HCLKx(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
967 LL_RCC_SetAHBPrescaler(RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
982 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK2) == RCC_CLOCKTYPE_HCLK2) in HAL_RCC_ClockConfig()
984 assert_param(IS_RCC_HCLKx(RCC_ClkInitStruct->AHBCLK2Divider)); in HAL_RCC_ClockConfig()
985 LL_C2_RCC_SetAHBPrescaler(RCC_ClkInitStruct->AHBCLK2Divider); in HAL_RCC_ClockConfig()
1000 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK3) == RCC_CLOCKTYPE_HCLK3) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_hal_rcc.c968 HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLaten… in HAL_RCC_ClockConfig() argument
975 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
981 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
1005 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK5) == RCC_CLOCKTYPE_HCLK5) in HAL_RCC_ClockConfig()
1007 assert_param(IS_RCC_HCLK5_HSEHSI(RCC_ClkInitStruct->AHB5_HSEHSI_CLKDivider)); in HAL_RCC_ClockConfig()
1008 assert_param(IS_RCC_HCLK5_PLL1(RCC_ClkInitStruct->AHB5_PLL1_CLKDivider)); in HAL_RCC_ClockConfig()
1010 … (RCC_ClkInitStruct->AHB5_PLL1_CLKDivider | RCC_ClkInitStruct->AHB5_HSEHSI_CLKDivider)); in HAL_RCC_ClockConfig()
1014 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
1016 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
1022 if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_hal_rcc.c589 HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLaten… in HAL_RCC_ClockConfig() argument
594 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
600 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
627 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
631 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
637 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
638 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
642 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
644 assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider)); in HAL_RCC_ClockConfig()
645 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_rcc.c1056 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
1061 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
1067 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
1095 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
1097 assert_param(IS_RCC_HCLKx(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
1098 LL_RCC_SetAHBPrescaler(RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
1112 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK2) == RCC_CLOCKTYPE_HCLK2) in HAL_RCC_ClockConfig()
1114 assert_param(IS_RCC_HCLKx(RCC_ClkInitStruct->AHBCLK2Divider)); in HAL_RCC_ClockConfig()
1115 LL_C2_RCC_SetAHBPrescaler(RCC_ClkInitStruct->AHBCLK2Divider); in HAL_RCC_ClockConfig()
1128 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK4) == RCC_CLOCKTYPE_HCLK4) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_rcc.c591 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
596 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
602 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
624 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
628 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
633 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) in HAL_RCC_ClockConfig()
638 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
639 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
643 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
645 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_rcc.c766 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
773 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
779 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
801 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
803 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
806 if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
821 (((((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) && in HAL_RCC_ClockConfig()
822 (RCC_ClkInitStruct->AHBCLKDivider == RCC_SYSCLK_DIV1)))) in HAL_RCC_ClockConfig()
832 if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) in HAL_RCC_ClockConfig()
861 MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_rcc.c857 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
863 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
869 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
896 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
898 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
899 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
903 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
905 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
908 if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) in HAL_RCC_ClockConfig()
917 else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_rcc.c797 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
803 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
829 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
831 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
832 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
836 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
838 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
841 if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) in HAL_RCC_ClockConfig()
850 else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
859 else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_rcc.c709 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
714 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
720 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
742 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
746 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
751 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) in HAL_RCC_ClockConfig()
757 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
758 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
762 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
764 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_rcc.c694 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
699 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
705 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
727 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
729 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
730 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
734 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
736 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
739 if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) in HAL_RCC_ClockConfig()
748 else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_rcc.c811 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
816 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
822 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
846 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
850 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
855 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) in HAL_RCC_ClockConfig()
861 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
862 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
866 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
868 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_rcc.c722 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
727 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
733 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
755 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
759 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
764 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) in HAL_RCC_ClockConfig()
770 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
771 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
775 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
777 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_rcc.c777 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
782 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
788 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
810 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
814 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
820 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
821 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
825 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
827 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
830 if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_rcc.c805 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
810 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
816 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
843 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
847 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) in HAL_RCC_ClockConfig()
853 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
854 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
858 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
860 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
863 if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_rcc.c1138 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
1145 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
1151 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
1174 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
1176 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
1178 if(RCC_ClkInitStruct->AHBCLKDivider > READ_BIT(RCC->CFGR, RCC_CFGR_HPRE)) in HAL_RCC_ClockConfig()
1180 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
1185 if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
1187 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
1190 if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_rcc.c1097 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) in HAL_RCC_ClockConfig() argument
1107 if(RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
1113 assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
1136 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
1138 assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); in HAL_RCC_ClockConfig()
1140 if(RCC_ClkInitStruct->AHBCLKDivider > READ_BIT(RCC->CFGR, RCC_CFGR_HPRE)) in HAL_RCC_ClockConfig()
1142 MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); in HAL_RCC_ClockConfig()
1147 if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) in HAL_RCC_ClockConfig()
1149 assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); in HAL_RCC_ClockConfig()
1152 if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_rcc.c1153 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct) in HAL_RCC_ClockConfig() argument
1160 if (RCC_ClkInitStruct == NULL) in HAL_RCC_ClockConfig()
1165 assert_param(IS_RCC_CLOCKTYPETYPE(RCC_ClkInitStruct->ClockType)); in HAL_RCC_ClockConfig()
1168 if ((RCC_ClkInitStruct->ClockType & RCC_CLOCKTYPE_MPU) == RCC_CLOCKTYPE_MPU) in HAL_RCC_ClockConfig()
1170 status = RCC_MPUConfig(&(RCC_ClkInitStruct->MPUInit)); in HAL_RCC_ClockConfig()
1178 if ((RCC_ClkInitStruct->ClockType & RCC_CLOCKTYPE_ACLK) == RCC_CLOCKTYPE_ACLK) in HAL_RCC_ClockConfig()
1180 status = RCC_AXISSConfig(&(RCC_ClkInitStruct->AXISSInit)); in HAL_RCC_ClockConfig()
1188 if ((RCC_ClkInitStruct->ClockType & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) in HAL_RCC_ClockConfig()
1190 status = RCC_MCUConfig(&(RCC_ClkInitStruct->MCUInit)); in HAL_RCC_ClockConfig()
1198 if ((RCC_ClkInitStruct->ClockType & RCC_CLOCKTYPE_PCLK4) == RCC_CLOCKTYPE_PCLK4) in HAL_RCC_ClockConfig()
[all …]
/hal_stm32-3.7.0/stm32cube/stm32f7xx/drivers/include/
Dstm32f7xx_hal_rcc.h1137 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1154 void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency);
/hal_stm32-3.7.0/stm32cube/stm32f1xx/drivers/include/
Dstm32f1xx_hal_rcc.h1156 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1175 void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatenc…
/hal_stm32-3.7.0/stm32cube/stm32f0xx/drivers/include/
Dstm32f0xx_hal_rcc.h1637 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1659 void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatenc…
/hal_stm32-3.7.0/stm32cube/stm32f4xx/drivers/include/
Dstm32f4xx_hal_rcc.h1244 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1261 void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency);
/hal_stm32-3.7.0/stm32cube/stm32l0xx/drivers/include/
Dstm32l0xx_hal_rcc.h1690 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1714 void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatenc…
/hal_stm32-3.7.0/stm32cube/stm32f3xx/drivers/include/
Dstm32f3xx_hal_rcc.h1690 HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1713 void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatenc…

12