/hal_stm32-3.7.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_rcc.c | 405 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 412 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 418 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 424 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI) in HAL_RCC_OscConfig() 427 assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState)); in HAL_RCC_OscConfig() 428 assert_param(IS_RCC_MSICALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue)); in HAL_RCC_OscConfig() 429 assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange)); in HAL_RCC_OscConfig() 435 if((READ_BIT(RCC->CR, RCC_CR_MSIRDY) != 0U) && (RCC_OscInitStruct->MSIState == RCC_MSI_OFF)) in HAL_RCC_OscConfig() 446 if(RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE()) in HAL_RCC_OscConfig() 449 if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK) in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_rcc.c | 309 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 316 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 322 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 325 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 328 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 337 if ((READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 345 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 348 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 379 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 382 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_rcc.c | 335 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 343 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 349 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 355 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI) in HAL_RCC_OscConfig() 358 assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState)); in HAL_RCC_OscConfig() 359 assert_param(IS_RCC_MSI_CALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue)); in HAL_RCC_OscConfig() 360 assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange)); in HAL_RCC_OscConfig() 366 if (RCC_OscInitStruct->MSIState == RCC_MSI_OFF) in HAL_RCC_OscConfig() 376 if (RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE()) in HAL_RCC_OscConfig() 379 if (RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK) in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_hal_rcc.c | 322 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 329 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 334 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 340 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 343 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 349 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 357 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 360 if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 391 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 394 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_rcc.c | 405 __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 411 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 417 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 419 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 422 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 429 … if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 437 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 440 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 471 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 474 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_rcc.c | 342 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 349 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 355 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 358 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 361 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 366 …if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 374 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 377 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 408 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 411 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_rcc.c | 384 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 389 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 395 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 398 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI) in HAL_RCC_OscConfig() 401 assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState)); in HAL_RCC_OscConfig() 402 assert_param(IS_RCC_MSICALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue)); in HAL_RCC_OscConfig() 403 assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange)); in HAL_RCC_OscConfig() 411 if (RCC_OscInitStruct->MSIState == RCC_MSI_OFF) in HAL_RCC_OscConfig() 421 if (RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE()) in HAL_RCC_OscConfig() 424 if (RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK) in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_rcc.c | 219 __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 224 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 230 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 232 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 235 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 240 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 248 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 251 if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) in HAL_RCC_OscConfig() 282 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 285 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
D | stm32f4xx_hal_rcc_ex.c | 3357 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 3362 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 3368 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 3370 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 3373 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 3384 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 3392 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 3395 if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) in HAL_RCC_OscConfig() 3426 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 3429 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_rcc.c | 336 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 344 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 350 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 356 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 359 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 365 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 373 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 376 if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 407 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 410 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_rcc.c | 429 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 436 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 442 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 448 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI) in HAL_RCC_OscConfig() 451 assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState)); in HAL_RCC_OscConfig() 452 assert_param(IS_RCC_MSICALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue)); in HAL_RCC_OscConfig() 453 assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange)); in HAL_RCC_OscConfig() 459 if ((READ_BIT(RCC->CR, RCC_CR_MSIRDY) != 0U) && (RCC_OscInitStruct->MSIState == RCC_MSI_OFF)) in HAL_RCC_OscConfig() 470 if (RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE()) in HAL_RCC_OscConfig() 473 if (RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK) in HAL_RCC_OscConfig() [all …]
|
D | stm32l5xx_hal_timebase_rtc_wakeup_template.c | 100 RCC_OscInitTypeDef RCC_OscInitStruct; in HAL_InitTick() local 109 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; in HAL_InitTick() 110 RCC_OscInitStruct.LSEState = RCC_LSE_ON_RTC_ONLY; in HAL_InitTick() 111 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() 116 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI; in HAL_InitTick() 117 RCC_OscInitStruct.LSIState = RCC_LSI_ON; in HAL_InitTick() 118 RCC_OscInitStruct.LSIDiv = RCC_LSI_DIV1; in HAL_InitTick() 119 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() 124 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; in HAL_InitTick() 125 RCC_OscInitStruct.HSEState = RCC_HSE_ON; in HAL_InitTick() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_hal_rcc.c | 298 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 305 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 311 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 314 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 317 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 323 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 331 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 335 if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 366 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 369 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_rcc.c | 326 HAL_StatusTypeDef HAL_RCC_OscConfig(const RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 336 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 342 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 348 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 351 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 357 if (RCC_OscInitStruct->HSEState == RCC_HSE_OFF) in HAL_RCC_OscConfig() 366 assert_param(IS_RCC_HSEDIV(RCC_OscInitStruct->HSEDiv)); in HAL_RCC_OscConfig() 369 __HAL_RCC_HSE_CONFIG(RCC_HSE_ON | RCC_OscInitStruct->HSEDiv); in HAL_RCC_OscConfig() 385 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 387 assert_param(IS_RCC_HSEDIV(RCC_OscInitStruct->HSEDiv)); in HAL_RCC_OscConfig() [all …]
|
D | stm32wbaxx_hal_timebase_rtc_wakeup_template.c | 120 RCC_OscInitTypeDef RCC_OscInitStruct; in HAL_InitTick() local 136 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; in HAL_InitTick() 137 RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_NONE; in HAL_InitTick() 138 RCC_OscInitStruct.LSEState = RCC_LSE_ON_RTC_ONLY; in HAL_InitTick() 142 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI; in HAL_InitTick() 143 RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_NONE; in HAL_InitTick() 144 RCC_OscInitStruct.LSIState = RCC_LSI1_ON; in HAL_InitTick() 148 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; in HAL_InitTick() 149 RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_NONE; in HAL_InitTick() 150 RCC_OscInitStruct.HSEState = RCC_HSE_ON; in HAL_InitTick() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_rcc.c | 312 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 319 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 325 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 328 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 331 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 339 if ((READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 347 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 350 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 381 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 384 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_rcc.c | 478 __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 484 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 490 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 492 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 495 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 499 … if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState != RCC_HSE_ON)) in HAL_RCC_OscConfig() 507 result = HAL_RCC_HSEConfig(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 515 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 518 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() 519 assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32f1xx/drivers/src/ |
D | stm32f1xx_hal_rcc.c | 345 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 351 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 357 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 360 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 363 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 369 …if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 377 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 381 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 412 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 415 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_hal_rcc.c | 314 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 323 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 329 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 332 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 335 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 341 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 349 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 353 __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); in HAL_RCC_OscConfig() 357 if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 388 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_rcc.c | 343 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 348 if(RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 354 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 356 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 359 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 364 … if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) in HAL_RCC_OscConfig() 372 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 375 if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) in HAL_RCC_OscConfig() 406 if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 409 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32h7rsxx/drivers/src/ |
D | stm32h7rsxx_hal_rcc.c | 435 HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 444 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 450 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 457 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 460 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 466 if (RCC_OscInitStruct->HSEState == RCC_HSE_OFF) in HAL_RCC_OscConfig() 474 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 480 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 505 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 508 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
D | stm32h7rsxx_hal_timebase_rtc_wakeup_template.c | 120 RCC_OscInitTypeDef RCC_OscInitStruct; in HAL_InitTick() local 136 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; in HAL_InitTick() 137 RCC_OscInitStruct.LSEState = RCC_LSE_ON; in HAL_InitTick() 138 RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_NONE; in HAL_InitTick() 139 RCC_OscInitStruct.PLL2.PLLState = RCC_PLL_NONE; in HAL_InitTick() 140 RCC_OscInitStruct.PLL3.PLLState = RCC_PLL_NONE; in HAL_InitTick() 144 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI; in HAL_InitTick() 145 RCC_OscInitStruct.LSIState = RCC_LSI_ON; in HAL_InitTick() 146 RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_NONE; in HAL_InitTick() 147 RCC_OscInitStruct.PLL2.PLLState = RCC_PLL_NONE; in HAL_InitTick() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32c0xx/drivers/src/ |
D | stm32c0xx_hal_rcc.c | 284 HAL_StatusTypeDef HAL_RCC_OscConfig(const RCC_OscInitTypeDef *RCC_OscInitStruct) in HAL_RCC_OscConfig() argument 290 if (RCC_OscInitStruct == NULL) in HAL_RCC_OscConfig() 296 assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); in HAL_RCC_OscConfig() 299 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) in HAL_RCC_OscConfig() 302 assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); in HAL_RCC_OscConfig() 309 if (RCC_OscInitStruct->HSEState == RCC_HSE_OFF) in HAL_RCC_OscConfig() 317 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); in HAL_RCC_OscConfig() 320 if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) in HAL_RCC_OscConfig() 351 if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) in HAL_RCC_OscConfig() 354 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-3.7.0/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_timebase_rtc_wakeup_template.c | 111 RCC_OscInitTypeDef RCC_OscInitStruct; in HAL_InitTick() local 128 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; in HAL_InitTick() 129 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() 130 RCC_OscInitStruct.LSEState = RCC_LSE_RTC_ONLY; in HAL_InitTick() 134 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI; in HAL_InitTick() 135 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() 136 RCC_OscInitStruct.LSIState = RCC_LSI_ON; in HAL_InitTick() 137 RCC_OscInitStruct.LSIDiv = RCC_LSI_DIV1; in HAL_InitTick() 141 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; in HAL_InitTick() 142 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() [all …]
|
D | stm32u5xx_hal_timebase_rtc_alarm_template.c | 110 RCC_OscInitTypeDef RCC_OscInitStruct; in HAL_InitTick() local 127 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; in HAL_InitTick() 128 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() 129 RCC_OscInitStruct.LSEState = RCC_LSE_ON_RTC_ONLY; in HAL_InitTick() 133 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI; in HAL_InitTick() 134 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() 135 RCC_OscInitStruct.LSIDiv = RCC_LSI_DIV1; in HAL_InitTick() 136 RCC_OscInitStruct.LSIState = RCC_LSI_ON; in HAL_InitTick() 140 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; in HAL_InitTick() 141 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in HAL_InitTick() [all …]
|