/hal_stm32-3.6.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_uart.c | 3017 uint32_t pclk; in UART_SetConfig() local 3082 pclk = HAL_RCCEx_GetD3PCLK1Freq(); in UART_SetConfig() 3086 pclk = pll2_clocks.PLL2_Q_Frequency; in UART_SetConfig() 3090 pclk = pll3_clocks.PLL3_Q_Frequency; in UART_SetConfig() 3095 pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); in UART_SetConfig() 3099 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3103 pclk = (uint32_t) CSI_VALUE; in UART_SetConfig() 3106 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3109 pclk = 0U; in UART_SetConfig() 3115 if (pclk != 0U) in UART_SetConfig() [all …]
|
/hal_stm32-3.6.0/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_uart.c | 2994 uint32_t pclk; in UART_SetConfig() local 3054 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3059 pclk = (uint32_t)(HSI_VALUE >> 2U); in UART_SetConfig() 3063 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3067 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3070 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3073 pclk = 0U; in UART_SetConfig() 3079 if (pclk != 0U) in UART_SetConfig() 3083 if ((pclk < (3U * huart->Init.BaudRate)) || in UART_SetConfig() 3084 (pclk > (4096U * huart->Init.BaudRate))) in UART_SetConfig() [all …]
|
D | stm32l0xx_hal_irda.c | 2359 uint32_t pclk; in IRDA_SetConfig() local 2391 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2392 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2395 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2396 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2402 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2403 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_uart.c | 3146 uint32_t pclk; in UART_SetConfig() local 3215 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3218 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3221 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3224 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3227 pclk = 0U; in UART_SetConfig() 3233 if (pclk != 0U) in UART_SetConfig() 3237 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3249 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3263 if ((pclk < (3U * huart->Init.BaudRate)) || in UART_SetConfig() [all …]
|
D | stm32l4xx_hal_irda.c | 2327 uint32_t pclk; in IRDA_SetConfig() local 2368 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2370 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2372 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2376 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2378 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2380 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2391 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2393 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2395 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig()
|
D | stm32l4xx_hal_smartcard.c | 2459 uint32_t pclk; in SMARTCARD_SetConfig() local 2535 pclk = HAL_RCC_GetPCLK1Freq(); in SMARTCARD_SetConfig() 2537 tmpreg = (uint32_t)(((pclk / SMARTCARDPrescTable[hsmartcard->Init.ClockPrescaler]) + in SMARTCARD_SetConfig() 2540 tmpreg = (uint32_t)((pclk + (hsmartcard->Init.BaudRate / 2U)) / hsmartcard->Init.BaudRate); in SMARTCARD_SetConfig() 2544 pclk = HAL_RCC_GetPCLK2Freq(); in SMARTCARD_SetConfig() 2546 tmpreg = (uint32_t)(((pclk / SMARTCARDPrescTable[hsmartcard->Init.ClockPrescaler]) + in SMARTCARD_SetConfig() 2549 tmpreg = (uint32_t)((pclk + (hsmartcard->Init.BaudRate / 2U)) / hsmartcard->Init.BaudRate); in SMARTCARD_SetConfig() 2561 pclk = HAL_RCC_GetSysClockFreq(); in SMARTCARD_SetConfig() 2563 tmpreg = (uint32_t)(((pclk / SMARTCARDPrescTable[hsmartcard->Init.ClockPrescaler]) + in SMARTCARD_SetConfig() 2566 tmpreg = (uint32_t)((pclk + (hsmartcard->Init.BaudRate / 2U)) / hsmartcard->Init.BaudRate); in SMARTCARD_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_uart.c | 3015 uint32_t pclk; in UART_SetConfig() local 3080 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3083 pclk = HAL_RCC_GetPCLK2Freq(); in UART_SetConfig() 3086 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3089 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3092 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3095 pclk = 0U; in UART_SetConfig() 3101 if (pclk != 0U) in UART_SetConfig() 3104 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3116 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() [all …]
|
D | stm32l5xx_hal_irda.c | 2255 uint32_t pclk; in IRDA_SetConfig() local 2292 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2293 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2296 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2297 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2303 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2304 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_uart.c | 3031 uint32_t pclk; in UART_SetConfig() local 3096 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3099 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3102 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3105 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3108 pclk = 0U; in UART_SetConfig() 3114 if (pclk != 0U) in UART_SetConfig() 3117 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3129 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3148 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() [all …]
|
D | stm32g4xx_hal_irda.c | 2262 uint32_t pclk; in IRDA_SetConfig() local 2299 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2300 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2303 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2304 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2310 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2311 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_uart.c | 3106 uint32_t pclk; in UART_SetConfig() local 3171 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3174 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3177 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3180 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3183 pclk = 0U; in UART_SetConfig() 3189 if (pclk != 0U) in UART_SetConfig() 3192 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3204 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3223 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() [all …]
|
/hal_stm32-3.6.0/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_uart.c | 3122 uint32_t pclk; in UART_SetConfig() local 3187 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3190 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3193 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3196 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3199 pclk = 0U; in UART_SetConfig() 3205 if (pclk != 0U) in UART_SetConfig() 3208 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3220 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3239 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() [all …]
|
D | stm32wlxx_hal_irda.c | 2381 uint32_t pclk; in IRDA_SetConfig() local 2418 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2419 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2422 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2423 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2429 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2430 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_uart.c | 3096 uint32_t pclk; in UART_SetConfig() local 3161 pclk = HAL_RCC_GetPCLK7Freq(); in UART_SetConfig() 3164 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3167 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3170 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3173 pclk = 0U; in UART_SetConfig() 3179 if (pclk != 0U) in UART_SetConfig() 3182 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3194 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3214 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() [all …]
|
/hal_stm32-3.6.0/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_uart.c | 3095 uint32_t pclk; in UART_SetConfig() local 3170 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3173 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3176 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3179 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3182 pclk = 0U; in UART_SetConfig() 3188 if (pclk != 0U) in UART_SetConfig() 3191 lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); in UART_SetConfig() 3203 … usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3225 pclk = HAL_RCC_GetPCLK2Freq(); in UART_SetConfig() [all …]
|
/hal_stm32-3.6.0/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_uart.c | 2906 uint32_t pclk; in UART_SetConfig() local 2954 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 2957 pclk = HAL_RCC_GetPCLK2Freq(); in UART_SetConfig() 2960 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 2963 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 2966 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 2969 pclk = 0U; in UART_SetConfig() 2975 if (pclk != 0U) in UART_SetConfig() 2977 usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate)); in UART_SetConfig() 2995 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() [all …]
|
D | stm32f7xx_hal_irda.c | 2257 uint32_t pclk; in IRDA_SetConfig() local 2289 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2290 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2293 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2294 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2300 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2301 tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_hal_uart.c | 2873 uint32_t pclk; in UART_SetConfig() local 2921 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 2924 pclk = HAL_RCC_GetPCLK2Freq(); in UART_SetConfig() 2927 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 2930 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 2933 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 2936 pclk = 0U; in UART_SetConfig() 2942 if (pclk != 0U) in UART_SetConfig() 2944 usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate)); in UART_SetConfig() 2962 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() [all …]
|
/hal_stm32-3.6.0/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_hal_uart.c | 3047 uint32_t pclk; in UART_SetConfig() local 3095 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3098 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() 3101 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3104 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3107 pclk = 0U; in UART_SetConfig() 3113 if (pclk != 0U) in UART_SetConfig() 3115 usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate)); in UART_SetConfig() 3133 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3136 pclk = (uint32_t) HSI_VALUE; in UART_SetConfig() [all …]
|
/hal_stm32-3.6.0/stm32cube/stm32c0xx/drivers/src/ |
D | stm32c0xx_hal_uart.c | 3115 uint32_t pclk; in UART_SetConfig() local 3168 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3171 pclk = (HSI_VALUE / ((__HAL_RCC_GET_HSIKER_DIVIDER() >> RCC_CR_HSIKERDIV_Pos) + 1U)); in UART_SetConfig() 3174 pclk = HAL_RCC_GetSysClockFreq(); in UART_SetConfig() 3177 pclk = (uint32_t) LSE_VALUE; in UART_SetConfig() 3180 pclk = 0U; in UART_SetConfig() 3186 if (pclk != 0U) in UART_SetConfig() 3188 … usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3206 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3209 pclk = (HSI_VALUE / ((__HAL_RCC_GET_HSIKER_DIVIDER() >> RCC_CR_HSIKERDIV_Pos) + 1U)); in UART_SetConfig() [all …]
|
D | stm32c0xx_hal_irda.c | 2383 uint32_t pclk; in IRDA_SetConfig() local 2420 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2421 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2424 pclk = (HSI_VALUE / ((__HAL_RCC_GET_HSIKER_DIVIDER() >> RCC_CR_HSIKERDIV_Pos) + 1U)); in IRDA_SetConfig() 2425 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig() 2428 pclk = HAL_RCC_GetSysClockFreq(); in IRDA_SetConfig() 2429 … tmpreg = (uint32_t)(IRDA_DIV_SAMPLING16(pclk, hirda->Init.BaudRate, hirda->Init.ClockPrescaler)); in IRDA_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_irda.c | 2619 uint32_t pclk; in IRDA_SetConfig() local 2652 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2653 SET_BIT(hirda->Instance->BRR, IRDA_BRR(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2658 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2659 SET_BIT(hirda->Instance->BRR, IRDA_BRR(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2664 pclk = HAL_RCC_GetPCLK2Freq(); in IRDA_SetConfig() 2665 SET_BIT(hirda->Instance->BRR, IRDA_BRR(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig() 2670 pclk = HAL_RCC_GetPCLK1Freq(); in IRDA_SetConfig() 2671 SET_BIT(hirda->Instance->BRR, IRDA_BRR(pclk, hirda->Init.BaudRate)); in IRDA_SetConfig()
|
D | stm32f4xx_hal_usart.c | 2743 uint32_t pclk; in USART_SetConfig() local 2799 pclk = HAL_RCC_GetPCLK2Freq(); in USART_SetConfig() 2800 husart->Instance->BRR = USART_BRR(pclk, husart->Init.BaudRate); in USART_SetConfig() 2805 pclk = HAL_RCC_GetPCLK2Freq(); in USART_SetConfig() 2806 husart->Instance->BRR = USART_BRR(pclk, husart->Init.BaudRate); in USART_SetConfig() 2811 pclk = HAL_RCC_GetPCLK2Freq(); in USART_SetConfig() 2812 husart->Instance->BRR = USART_BRR(pclk, husart->Init.BaudRate); in USART_SetConfig() 2817 pclk = HAL_RCC_GetPCLK1Freq(); in USART_SetConfig() 2818 husart->Instance->BRR = USART_BRR(pclk, husart->Init.BaudRate); in USART_SetConfig()
|
D | stm32f4xx_hal_smartcard.c | 2267 uint32_t pclk; in SMARTCARD_SetConfig() local 2334 pclk = HAL_RCC_GetPCLK2Freq(); in SMARTCARD_SetConfig() 2335 hsc->Instance->BRR = SMARTCARD_BRR(pclk, hsc->Init.BaudRate); in SMARTCARD_SetConfig() 2340 pclk = HAL_RCC_GetPCLK2Freq(); in SMARTCARD_SetConfig() 2341 hsc->Instance->BRR = SMARTCARD_BRR(pclk, hsc->Init.BaudRate); in SMARTCARD_SetConfig() 2346 pclk = HAL_RCC_GetPCLK1Freq(); in SMARTCARD_SetConfig() 2347 hsc->Instance->BRR = SMARTCARD_BRR(pclk, hsc->Init.BaudRate); in SMARTCARD_SetConfig()
|
/hal_stm32-3.6.0/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_uart.c | 3136 uint32_t pclk; in UART_SetConfig() local 3190 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3191 … usartdiv = (uint16_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3194 pclk = HAL_RCC_GetPCLK2Freq(); in UART_SetConfig() 3195 … usartdiv = (uint16_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3198 pclk = HAL_RCC_GetPCLK5Freq(); in UART_SetConfig() 3199 … usartdiv = (uint16_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3240 pclk = HAL_RCC_GetPCLK1Freq(); in UART_SetConfig() 3241 …usartdiv = (uint16_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); in UART_SetConfig() 3244 pclk = HAL_RCC_GetPCLK2Freq(); in UART_SetConfig() [all …]
|