Home
last modified time | relevance | path

Searched refs:temp_reg (Results 1 – 5 of 5) sorted by relevance

/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_rcc_ex.c102 uint32_t tickstart = 0U, temp_reg = 0U; in HAL_RCCEx_PeriphCLKConfig() local
145 temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
146 …if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)… in HAL_RCCEx_PeriphCLKConfig()
149 temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
154 RCC->BDCR = temp_reg; in HAL_RCCEx_PeriphCLKConfig()
157 if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) in HAL_RCCEx_PeriphCLKConfig()
403 uint32_t temp_reg = 0U, frequency = 0U; in HAL_RCCEx_GetPeriphCLKFreq() local
416 temp_reg = RCC->CFGR; in HAL_RCCEx_GetPeriphCLKFreq()
421 … pllmul = aPLLMULFactorTable[(uint32_t)(temp_reg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; in HAL_RCCEx_GetPeriphCLKFreq()
422 if ((temp_reg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) in HAL_RCCEx_GetPeriphCLKFreq()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_rcc_ex.c93 uint32_t temp_reg; in HAL_RCCEx_PeriphCLKConfig() local
147 temp_reg = (RCC->CR & RCC_CR_RTCPRE); 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()
165 temp_reg = (RCC->CSR & RCC_CSR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
167 …if((temp_reg != 0x00000000U) && (((temp_reg != (PeriphClkInit->RTCClockSelection & RCC_CSR_RTCSEL)… in HAL_RCCEx_PeriphCLKConfig()
170 || ((temp_reg != (PeriphClkInit->LCDClockSelection & RCC_CSR_RTCSEL)) \ in HAL_RCCEx_PeriphCLKConfig()
176 temp_reg = (RCC->CSR & ~(RCC_CSR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
183 RCC->CSR = temp_reg; in HAL_RCCEx_PeriphCLKConfig()
186 if (HAL_IS_BIT_SET(temp_reg, RCC_CSR_LSEON)) in HAL_RCCEx_PeriphCLKConfig()
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_rcc_ex.c98 uint32_t temp_reg; in HAL_RCCEx_PeriphCLKConfig() local
151 temp_reg = (RCC->CR & RCC_CR_RTCPRE); 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()
169 temp_reg = (RCC->CSR & RCC_CSR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
171 …if((temp_reg != 0x00000000U) && (((temp_reg != (PeriphClkInit->RTCClockSelection & RCC_CSR_RTCSEL)… in HAL_RCCEx_PeriphCLKConfig()
174 || ((temp_reg != (PeriphClkInit->LCDClockSelection & RCC_CSR_RTCSEL)) \ in HAL_RCCEx_PeriphCLKConfig()
180 temp_reg = (RCC->CSR & ~(RCC_CSR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
187 RCC->CSR = temp_reg; in HAL_RCCEx_PeriphCLKConfig()
190 if (HAL_IS_BIT_SET(temp_reg, RCC_CSR_LSEON)) in HAL_RCCEx_PeriphCLKConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_rcc_ex.c105 uint32_t temp_reg = 0U; in HAL_RCCEx_PeriphCLKConfig() local
145 temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
146 …if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
149 temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
154 RCC->BDCR = temp_reg; in HAL_RCCEx_PeriphCLKConfig()
157 if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) in HAL_RCCEx_PeriphCLKConfig()
/hal_stm32-3.5.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_rcc_ex.c108 uint32_t temp_reg = 0U; in HAL_RCCEx_PeriphCLKConfig() local
148 temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
149 …if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
152 temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
157 RCC->BDCR = temp_reg; in HAL_RCCEx_PeriphCLKConfig()
160 if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) in HAL_RCCEx_PeriphCLKConfig()