Home
last modified time | relevance | path

Searched refs:PeriphClkInit (Results 1 – 25 of 36) sorted by relevance

12

/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_rcc_ex.c105 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
114 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
117 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S)) in HAL_RCCEx_PeriphCLKConfig()
120 assert_param(IS_RCC_I2SCLKSOURCE(PeriphClkInit->I2sClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
123 __HAL_RCC_I2S_CONFIG(PeriphClkInit->I2sClockSelection); in HAL_RCCEx_PeriphCLKConfig()
126 if(PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S) in HAL_RCCEx_PeriphCLKConfig()
133 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1)) in HAL_RCCEx_PeriphCLKConfig()
136 assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
139 __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
141 if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_rcc_ex.c87 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
100 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
103 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == (RCC_PERIPHCLK_I2S_APB1)) in HAL_RCCEx_PeriphCLKConfig()
106 assert_param(IS_RCC_I2SAPB1CLKSOURCE(PeriphClkInit->I2sApb1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
109 __HAL_RCC_I2S_APB1_CONFIG(PeriphClkInit->I2sApb1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
111 if(PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S) in HAL_RCCEx_PeriphCLKConfig()
119 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == (RCC_PERIPHCLK_I2S_APB2)) in HAL_RCCEx_PeriphCLKConfig()
122 assert_param(IS_RCC_I2SAPB2CLKSOURCE(PeriphClkInit->I2sApb2ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
125 __HAL_RCC_I2S_APB2_CONFIG(PeriphClkInit->I2sApb2ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
127 if(PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_rcc_ex.c638 *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
646 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
649 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == in HAL_RCCEx_PeriphCLKConfig()
653 assert_param(IS_RCC_CKPERCLKSOURCE(PeriphClkInit->CkperClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
655 __HAL_RCC_CKPER_CONFIG(PeriphClkInit->CkperClockSelection); in HAL_RCCEx_PeriphCLKConfig()
659 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C12) == in HAL_RCCEx_PeriphCLKConfig()
663 assert_param(IS_RCC_I2C12CLKSOURCE(PeriphClkInit->I2c12ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
665 if ((PeriphClkInit->I2c12ClockSelection) == RCC_I2C12CLKSOURCE_PLL4) in HAL_RCCEx_PeriphCLKConfig()
667 status = RCCEx_PLL4_Config(&(PeriphClkInit->PLL4)); in HAL_RCCEx_PeriphCLKConfig()
675 __HAL_RCC_I2C12_CONFIG(PeriphClkInit->I2c12ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_rcc_ex.c105 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
112 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
115 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) in HAL_RCCEx_PeriphCLKConfig()
118 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
149 …if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
175 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
185 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
188 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
191 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
196 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_rcc_ex.c105 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
114 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) in HAL_RCCEx_PeriphCLKConfig()
117 switch (PeriphClkInit->SpdifrxClockSelection) in HAL_RCCEx_PeriphCLKConfig()
128 ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
134 ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
152 __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection); in HAL_RCCEx_PeriphCLKConfig()
162 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) in HAL_RCCEx_PeriphCLKConfig()
164 switch (PeriphClkInit->Sai1ClockSelection) in HAL_RCCEx_PeriphCLKConfig()
175 ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
181 ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_rcc_ex.c112 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
120 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
123 if ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
128 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
158 … if ((tmpregister != RCC_RTCCLKSOURCE_NONE) && (tmpregister != PeriphClkInit->RTCClockSelection)) in HAL_RCCEx_PeriphCLKConfig()
189 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
211 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
214 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
217 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
222 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_rcc_ex.c123 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
131 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
134 if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
139 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
168 … if((tmpregister != RCC_RTCCLKSOURCE_NONE) && (tmpregister != PeriphClkInit->RTCClockSelection)) in HAL_RCCEx_PeriphCLKConfig()
199 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
221 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
224 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
227 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
231 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_hal_rcc_ex.c96 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(const RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
103 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
106 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
109 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
112 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
117 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) in HAL_RCCEx_PeriphCLKConfig()
120 assert_param(IS_RCC_USART2CLKSOURCE(PeriphClkInit->Usart2ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
123 __HAL_RCC_USART2_CONFIG(PeriphClkInit->Usart2ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
130 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) in HAL_RCCEx_PeriphCLKConfig()
133 assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_rcc_ex.c146 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
154 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
157 if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)) in HAL_RCCEx_PeriphCLKConfig()
160 assert_param(IS_RCC_SAI1CLK(PeriphClkInit->Sai1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
162 switch (PeriphClkInit->Sai1ClockSelection) in HAL_RCCEx_PeriphCLKConfig()
172 ret = RCCEx_PLLSAI1_Config(&(PeriphClkInit->PLLSAI1), DIVIDER_P_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
178 ret = RCCEx_PLLSAI2_Config(&(PeriphClkInit->PLLSAI2), DIVIDER_P_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
195 __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
205 if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2)) in HAL_RCCEx_PeriphCLKConfig()
208 assert_param(IS_RCC_SAI2CLK(PeriphClkInit->Sai2ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_rcc_ex.c194 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
201 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
206 if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)) in HAL_RCCEx_PeriphCLKConfig()
209 assert_param(IS_RCC_SAI1CLK(PeriphClkInit->Sai1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
211 switch(PeriphClkInit->Sai1ClockSelection) in HAL_RCCEx_PeriphCLKConfig()
225 ret = RCCEx_PLLSAI1_Config(&(PeriphClkInit->PLLSAI1), DIVIDER_P_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
233 ret = RCCEx_PLLSAI2_Config(&(PeriphClkInit->PLLSAI2), DIVIDER_P_UPDATE); in HAL_RCCEx_PeriphCLKConfig()
254 __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
268 if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2)) in HAL_RCCEx_PeriphCLKConfig()
271 assert_param(IS_RCC_SAI2CLK(PeriphClkInit->Sai2ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_rcc_ex.c113 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
121 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
124 if ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
128 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
149 if (LL_RCC_GetRTCClockSource() != PeriphClkInit->RTCClockSelection) in HAL_RCCEx_PeriphCLKConfig()
182 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
199 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
202 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
205 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
209 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_rcc_ex.c147 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
154 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
158 if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)) in HAL_RCCEx_PeriphCLKConfig()
161 assert_param(IS_RCC_SAI1CLK(PeriphClkInit->Sai1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
163 switch (PeriphClkInit->Sai1ClockSelection) in HAL_RCCEx_PeriphCLKConfig()
174 ret = RCCEx_PLLSAI1_ConfigNP(&(PeriphClkInit->PLLSAI1)); in HAL_RCCEx_PeriphCLKConfig()
194 __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
205 if ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
210 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
213 if (rtcclocksource != PeriphClkInit->RTCClockSelection) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_rcc_ex.c95 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
102 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
105 if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
107 || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LCD) == RCC_PERIPHCLK_LCD) in HAL_RCCEx_PeriphCLKConfig()
112 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
114 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
118 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LCD) == RCC_PERIPHCLK_LCD) in HAL_RCCEx_PeriphCLKConfig()
120 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->LCDClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
152 if ((temp_reg != (PeriphClkInit->RTCClockSelection & RCC_CR_RTCPRE)) in HAL_RCCEx_PeriphCLKConfig()
154 || (temp_reg != (PeriphClkInit->LCDClockSelection & RCC_CR_RTCPRE)) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_rcc_ex.c100 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
108 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
111 if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)) in HAL_RCCEx_PeriphCLKConfig()
116 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
146 …if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)… in HAL_RCCEx_PeriphCLKConfig()
172 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
182 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) in HAL_RCCEx_PeriphCLKConfig()
185 assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
188 __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); in HAL_RCCEx_PeriphCLKConfig()
193 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S2) == RCC_PERIPHCLK_I2S2) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_rcc_ex.c102 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
108 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
111 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) in HAL_RCCEx_PeriphCLKConfig()
114 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
146 …if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
172 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
182 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
185 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
188 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
194 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_hal_rcc_ex.c92 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(const RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
100 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
103 if ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
108 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
122 if ((tmpregister != RCC_RTCCLKSOURCE_NONE) && (tmpregister != PeriphClkInit->RTCClockSelection)) in HAL_RCCEx_PeriphCLKConfig()
153 __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); in HAL_RCCEx_PeriphCLKConfig()
169 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) in HAL_RCCEx_PeriphCLKConfig()
172 assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
175 __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); in HAL_RCCEx_PeriphCLKConfig()
179 if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_rcc_ex.c90 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
96 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
99 if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
101 || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LCD) == RCC_PERIPHCLK_LCD) in HAL_RCCEx_PeriphCLKConfig()
106 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) in HAL_RCCEx_PeriphCLKConfig()
108 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
112 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LCD) == RCC_PERIPHCLK_LCD) in HAL_RCCEx_PeriphCLKConfig()
114 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->LCDClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
148 if ((temp_reg != (PeriphClkInit->RTCClockSelection & RCC_CR_RTCPRE)) in HAL_RCCEx_PeriphCLKConfig()
150 || (temp_reg != (PeriphClkInit->LCDClockSelection & RCC_CR_RTCPRE)) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_rcc_ex.c85 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) in HAL_RCCEx_PeriphCLKConfig() argument
91 assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
94 if(((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S))|| \ in HAL_RCCEx_PeriphCLKConfig()
95 (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S)) in HAL_RCCEx_PeriphCLKConfig()
98 assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); in HAL_RCCEx_PeriphCLKConfig()
99 assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); in HAL_RCCEx_PeriphCLKConfig()
117 __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SR); in HAL_RCCEx_PeriphCLKConfig()
136 if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) in HAL_RCCEx_PeriphCLKConfig()
139 assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); in HAL_RCCEx_PeriphCLKConfig()
159 …if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32c0xx/drivers/include/
Dstm32c0xx_hal_rcc_ex.h301 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(const RCC_PeriphCLKInitTypeDef *PeriphClkInit);
302 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/include/
Dstm32f2xx_hal_rcc_ex.h357 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
358 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/include/
Dstm32wlxx_hal_rcc_ex.h653 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
654 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/include/
Dstm32wbaxx_hal_rcc_ex.h773 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(const RCC_PeriphCLKInitTypeDef *PeriphClkInit);
774 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/include/
Dstm32wbxx_hal_rcc_ex.h1582 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
1583 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/include/
Dstm32g4xx_hal_rcc_ex.h1262 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
1263 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/include/
Dstm32g0xx_hal_rcc_ex.h1193 HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
1194 void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);

12