/hal_stm32-3.4.0/stm32cube/stm32u5xx/drivers/include/ |
D | stm32u5xx_ll_pwr.h | 34 #if defined (PWR) 496 #define LL_PWR_GPIO_PORTA (&(PWR->PUCRA)) /*!< GPIO port A */ 497 #define LL_PWR_GPIO_PORTB (&(PWR->PUCRB)) /*!< GPIO port B */ 498 #define LL_PWR_GPIO_PORTC (&(PWR->PUCRC)) /*!< GPIO port C */ 499 #define LL_PWR_GPIO_PORTD (&(PWR->PUCRD)) /*!< GPIO port D */ 500 #define LL_PWR_GPIO_PORTE (&(PWR->PUCRE)) /*!< GPIO port E */ 502 #define LL_PWR_GPIO_PORTF (&(PWR->PUCRF)) /*!< GPIO port F */ 504 #define LL_PWR_GPIO_PORTG (&(PWR->PUCRG)) /*!< GPIO port G */ 505 #define LL_PWR_GPIO_PORTH (&(PWR->PUCRH)) /*!< GPIO port H */ 507 #define LL_PWR_GPIO_PORTI (&(PWR->PUCRI)) /*!< GPIO port I */ [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_pwr_ex.c | 349 vos_old = READ_BIT(PWR->SVMSR, PWR_SVMSR_ACTVOS); in HAL_PWREx_ControlVoltageScaling() 358 SET_BIT(PWR->VOSR, PWR_VOSR_BOOSTEN); in HAL_PWREx_ControlVoltageScaling() 371 MODIFY_REG(PWR->VOSR, (PWR_VOSR_VOS | PWR_VOSR_BOOSTEN), (VoltageScaling | PWR_VOSR_BOOSTEN)); in HAL_PWREx_ControlVoltageScaling() 375 MODIFY_REG(PWR->VOSR, (PWR_VOSR_VOS | PWR_VOSR_BOOSTEN), VoltageScaling); in HAL_PWREx_ControlVoltageScaling() 380 while (HAL_IS_BIT_CLR(PWR->VOSR, PWR_VOSR_VOSRDY) && (timeout != 0U)) in HAL_PWREx_ControlVoltageScaling() 390 while ((HAL_IS_BIT_CLR(PWR->SVMSR, PWR_SVMSR_ACTVOSRDY)) && (timeout != 0U)) in HAL_PWREx_ControlVoltageScaling() 411 return (PWR->SVMSR & PWR_SVMSR_ACTVOS); in HAL_PWREx_GetVoltageRange() 437 CLEAR_BIT(PWR->CR3, PWR_CR3_REGSEL); in HAL_PWREx_ConfigSupply() 440 while (HAL_IS_BIT_SET(PWR->SVMSR, PWR_SVMSR_REGS) && (timeout != 0U)) in HAL_PWREx_ConfigSupply() 449 SET_BIT(PWR->CR3, PWR_CR3_REGSEL); in HAL_PWREx_ConfigSupply() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32h7xx/drivers/include/ |
D | stm32h7xx_ll_pwr.h | 34 #if defined (PWR) 329 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 336 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 363 MODIFY_REG(PWR->CR1, PWR_CR1_LPDS, RegulMode); in LL_PWR_SetRegulModeDS() 375 return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_LPDS)); in LL_PWR_GetRegulModeDS() 385 SET_BIT(PWR->CR1, PWR_CR1_PVDEN); in LL_PWR_EnablePVD() 395 CLEAR_BIT(PWR->CR1, PWR_CR1_PVDEN); in LL_PWR_DisablePVD() 405 return ((READ_BIT(PWR->CR1, PWR_CR1_PVDEN) == (PWR_CR1_PVDEN)) ? 1UL : 0UL); in LL_PWR_IsEnabledPVD() 424 MODIFY_REG(PWR->CR1, PWR_CR1_PLS, PVDLevel); in LL_PWR_SetPVDLevel() 442 return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_PLS)); in LL_PWR_GetPVDLevel() [all …]
|
D | stm32h7xx_hal_pwr.h | 252 MODIFY_REG(PWR->SRDCR, PWR_SRDCR_VOS, (__REGULATOR__)); \ 254 tmpreg = READ_BIT(PWR->SRDCR, PWR_SRDCR_VOS); \ 266 MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); \ 268 tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ 281 MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, (__REGULATOR__)); \ 283 tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ 292 MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, (__REGULATOR__)); \ 294 tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ 379 (((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ 380 ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32wlxx/drivers/include/ |
D | stm32wlxx_ll_pwr.h | 34 #if defined(PWR) 214 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 215 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 216 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 217 #define LL_PWR_GPIO_H ((uint32_t)(&(PWR->PUCRH))) 311 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 318 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 344 SET_BIT(PWR->CR1, PWR_CR1_LPR); in LL_PWR_EnterLowPowerRunMode() 354 CLEAR_BIT(PWR->CR1, PWR_CR1_LPR); in LL_PWR_ExitLowPowerRunMode() 364 return ((READ_BIT(PWR->CR1, PWR_CR1_LPR) == (PWR_CR1_LPR)) ? 1UL : 0UL); in LL_PWR_IsEnabledLowPowerRunMode() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32h5xx/drivers/include/ |
D | stm32h5xx_ll_pwr.h | 34 #if defined (PWR) 273 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 280 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 309 MODIFY_REG(PWR->PMCR, PWR_PMCR_LPMS, Mode); in LL_PWR_SetPowerMode() 321 return (READ_BIT(PWR->PMCR, PWR_PMCR_LPMS)); in LL_PWR_GetPowerMode() 335 MODIFY_REG(PWR->PMCR, PWR_PMCR_SVOS, VoltageScaling); in LL_PWR_SetStopModeRegulVoltageScaling() 348 return (uint32_t)(READ_BIT(PWR->PMCR, PWR_PMCR_SVOS)); in LL_PWR_GetStopModeRegulVoltageScaling() 358 SET_BIT(PWR->PMCR, PWR_PMCR_FLPS); in LL_PWR_EnableFlashPowerDown() 368 CLEAR_BIT(PWR->PMCR, PWR_PMCR_FLPS); in LL_PWR_DisableFlashPowerDown() 378 return ((READ_BIT(PWR->PMCR, PWR_PMCR_FLPS) == (PWR_PMCR_FLPS)) ? 1UL : 0UL); in LL_PWR_IsEnabledFlashPowerDown() [all …]
|
D | stm32h5xx_hal_pwr.h | 312 …(((__FLAG__) == PWR_FLAG_STOPF) ? (READ_BIT(PWR->PMSR, PWR_PMSR_STOPF) == PWR_PMSR_S… 313 …((__FLAG__) == PWR_FLAG_SBF) ? (READ_BIT(PWR->PMSR, PWR_PMSR_SBF) == PWR_PMSR_SB… 314 …((__FLAG__) == PWR_FLAG_VOSRDY) ? (READ_BIT(PWR->VOSSR, PWR_VOSSR_VOSRDY) == PWR_VOSSR_V… 315 …((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? (READ_BIT(PWR->VOSSR, PWR_VOSSR_ACTVOSRDY) == PWR_VOSSR_A… 316 …((__FLAG__) == PWR_FLAG_BRR) ? (READ_BIT(PWR->BDSR, PWR_BDSR_BRRDY) == PWR_BDSR_BR… 317 …((__FLAG__) == PWR_FLAG_VBATL) ? (READ_BIT(PWR->BDSR, PWR_BDSR_VBATL) == PWR_BDSR_VB… 318 …((__FLAG__) == PWR_FLAG_VBATH) ? (READ_BIT(PWR->BDSR, PWR_BDSR_VBATH) == PWR_BDSR_VB… 319 …((__FLAG__) == PWR_FLAG_TEMPL) ? (READ_BIT(PWR->BDSR, PWR_BDSR_TEMPL) == PWR_BDSR_TE… 320 …((__FLAG__) == PWR_FLAG_TEMPH) ? (READ_BIT(PWR->BDSR, PWR_BDSR_TEMPH) == PWR_BDSR_TE… 321 …((__FLAG__) == PWR_FLAG_AVDO) ? (READ_BIT(PWR->VMSR, PWR_VMSR_AVDO) == PWR_VMSR_AV… [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32wbxx/drivers/include/ |
D | stm32wbxx_ll_pwr.h | 34 #if defined(PWR) 269 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 270 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 271 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 272 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD))) 273 #define LL_PWR_GPIO_E ((uint32_t)(&(PWR->PUCRE))) 274 #define LL_PWR_GPIO_H ((uint32_t)(&(PWR->PUCRH))) 407 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 414 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 440 SET_BIT(PWR->CR1, PWR_CR1_LPR); in LL_PWR_EnterLowPowerRunMode() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_pwr_ex.c | 117 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_GetVoltageRange() 121 else if (READ_BIT(PWR->CR5, PWR_CR5_R1MODE) == PWR_CR5_R1MODE) in HAL_PWREx_GetVoltageRange() 131 return (PWR->CR1 & PWR_CR1_VOS); in HAL_PWREx_GetVoltageRange() 173 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 176 CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE); in HAL_PWREx_ControlVoltageScaling() 179 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 183 while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) in HAL_PWREx_ControlVoltageScaling() 187 if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) in HAL_PWREx_ControlVoltageScaling() 196 CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE); in HAL_PWREx_ControlVoltageScaling() 202 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32l5xx/drivers/include/ |
D | stm32l5xx_ll_pwr.h | 33 #if defined(PWR) 164 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 165 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 166 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 167 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD))) 168 #define LL_PWR_GPIO_E ((uint32_t)(&(PWR->PUCRE))) 169 #define LL_PWR_GPIO_F ((uint32_t)(&(PWR->PUCRF))) 170 #define LL_PWR_GPIO_G ((uint32_t)(&(PWR->PUCRG))) 171 #define LL_PWR_GPIO_H ((uint32_t)(&(PWR->PUCRH))) 257 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32l4xx/drivers/include/ |
D | stm32l4xx_ll_pwr.h | 34 #if defined(PWR) 195 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 196 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 197 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 198 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD))) 199 #define LL_PWR_GPIO_E ((uint32_t)(&(PWR->PUCRE))) 201 #define LL_PWR_GPIO_F ((uint32_t)(&(PWR->PUCRF))) 204 #define LL_PWR_GPIO_G ((uint32_t)(&(PWR->PUCRG))) 207 #define LL_PWR_GPIO_H ((uint32_t)(&(PWR->PUCRH))) 210 #define LL_PWR_GPIO_I ((uint32_t)(&(PWR->PUCRI))) [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_pwr_ex.c | 103 return (PWR->CR1 & PWR_CR1_VOS); in HAL_PWREx_GetVoltageRange() 137 uint32_t vos_old = READ_BIT(PWR->CR1, PWR_CR1_VOS); in HAL_PWREx_ControlVoltageScaling() 145 if (READ_BIT(PWR->CR4, PWR_CR4_SMPSLPEN) == PWR_CR4_SMPSLPEN) in HAL_PWREx_ControlVoltageScaling() 156 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, VoltageScaling); in HAL_PWREx_ControlVoltageScaling() 162 while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) in HAL_PWREx_ControlVoltageScaling() 167 if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) in HAL_PWREx_ControlVoltageScaling() 189 MODIFY_REG(PWR->CR4, PWR_CR4_VBRS, ResistorSelection); in HAL_PWREx_EnableBatteryCharging() 192 SET_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_EnableBatteryCharging() 202 CLEAR_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_DisableBatteryCharging() 214 SET_BIT(PWR->CR2, PWR_CR2_USV); in HAL_PWREx_EnableVddUSB() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_pwr_ex.c | 111 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_GetVoltageRange() 115 else if (READ_BIT(PWR->CR5, PWR_CR5_R1MODE) == PWR_CR5_R1MODE) in HAL_PWREx_GetVoltageRange() 162 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 165 CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE); in HAL_PWREx_ControlVoltageScaling() 168 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 172 while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) in HAL_PWREx_ControlVoltageScaling() 176 if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) in HAL_PWREx_ControlVoltageScaling() 185 CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE); in HAL_PWREx_ControlVoltageScaling() 191 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 194 SET_BIT(PWR->CR5, PWR_CR5_R1MODE); in HAL_PWREx_ControlVoltageScaling() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32g0xx/drivers/include/ |
D | stm32g0xx_ll_pwr.h | 34 #if defined(PWR) 181 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 182 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 183 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 184 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD))) 186 #define LL_PWR_GPIO_E ((uint32_t)(&(PWR->PUCRE))) 188 #define LL_PWR_GPIO_F ((uint32_t)(&(PWR->PUCRF))) 235 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 242 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 270 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, VoltageScaling); in LL_PWR_SetRegulVoltageScaling() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_pwr_ex.c | 88 return (PWR->CR1 & PWR_CR1_VOS); in HAL_PWREx_GetVoltageRange() 120 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) != PWR_REGULATOR_VOLTAGE_SCALE1) in HAL_PWREx_ControlVoltageScaling() 123 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 127 while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) in HAL_PWREx_ControlVoltageScaling() 131 if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) in HAL_PWREx_ControlVoltageScaling() 139 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) != PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 142 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE2); in HAL_PWREx_ControlVoltageScaling() 167 MODIFY_REG(PWR->CR4, PWR_CR4_VBRS, ResistorSelection); in HAL_PWREx_EnableBatteryCharging() 170 SET_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_EnableBatteryCharging() 179 CLEAR_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_DisableBatteryCharging() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32mp1xx/drivers/include/ |
D | stm32mp1xx_ll_pwr.h | 34 #if defined(PWR) 199 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 206 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 230 SET_BIT(PWR->CR1, PWR_CR1_PVDEN); in LL_PWR_EnablePVD() 240 CLEAR_BIT(PWR->CR1, PWR_CR1_PVDEN); in LL_PWR_DisablePVD() 250 return ((READ_BIT(PWR->CR1, PWR_CR1_PVDEN) == (PWR_CR1_PVDEN)) ? 1UL : 0UL); in LL_PWR_IsEnabledPVD() 269 MODIFY_REG(PWR->CR1, PWR_CR1_PLS, PVDLevel); in LL_PWR_SetPVDLevel() 287 return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_PLS)); in LL_PWR_GetPVDLevel() 297 SET_BIT(PWR->CR1, PWR_CR1_DBP); in LL_PWR_EnableBkUpAccess() 307 CLEAR_BIT(PWR->CR1, PWR_CR1_DBP); in LL_PWR_DisableBkUpAccess() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32g4xx/drivers/include/ |
D | stm32g4xx_ll_pwr.h | 34 #if defined(PWR) 177 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 178 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 179 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 180 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD))) 181 #define LL_PWR_GPIO_E ((uint32_t)(&(PWR->PUCRE))) 182 #define LL_PWR_GPIO_F ((uint32_t)(&(PWR->PUCRF))) 183 #define LL_PWR_GPIO_G ((uint32_t)(&(PWR->PUCRG))) 230 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 237 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32f7xx/drivers/include/ |
D | stm32f7xx_ll_pwr.h | 34 #if defined(PWR) 166 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 173 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 205 SET_BIT(PWR->CR1, PWR_CR1_UDEN); in LL_PWR_EnableUnderDriveMode() 215 CLEAR_BIT(PWR->CR1, PWR_CR1_UDEN); in LL_PWR_DisableUnderDriveMode() 225 return (READ_BIT(PWR->CR1, PWR_CR1_UDEN) == (PWR_CR1_UDEN)); in LL_PWR_IsEnabledUnderDriveMode() 235 SET_BIT(PWR->CR1, PWR_CR1_ODSWEN); in LL_PWR_EnableOverDriveSwitching() 245 CLEAR_BIT(PWR->CR1, PWR_CR1_ODSWEN); in LL_PWR_DisableOverDriveSwitching() 255 return (READ_BIT(PWR->CR1, PWR_CR1_ODSWEN) == (PWR_CR1_ODSWEN)); in LL_PWR_IsEnabledOverDriveSwitching() 265 SET_BIT(PWR->CR1, PWR_CR1_ODEN); in LL_PWR_EnableOverDriveMode() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32f4xx/drivers/include/ |
D | stm32f4xx_ll_pwr.h | 33 #if defined(PWR) 177 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 184 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 210 SET_BIT(PWR->CR, PWR_CR_FISSR); in LL_PWR_EnableFLASHInterfaceSTOP() 220 CLEAR_BIT(PWR->CR, PWR_CR_FISSR); in LL_PWR_DisableFLASHInterfaceSTOP() 230 return (READ_BIT(PWR->CR, PWR_CR_FISSR) == (PWR_CR_FISSR)); in LL_PWR_IsEnabledFLASHInterfaceSTOP() 243 SET_BIT(PWR->CR, PWR_CR_FMSSR); in LL_PWR_EnableFLASHMemorySTOP() 253 CLEAR_BIT(PWR->CR, PWR_CR_FMSSR); in LL_PWR_DisableFLASHMemorySTOP() 263 return (READ_BIT(PWR->CR, PWR_CR_FMSSR) == (PWR_CR_FMSSR)); in LL_PWR_IsEnabledFLASHMemorySTOP() 282 SET_BIT(PWR->CR, PWR_CR_UDEN); in LL_PWR_EnableUnderDriveMode() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_pwr_ex.c | 137 tmpreg = (PWR->CR4 & ~PWR_CR4_VBRS); in HAL_PWREx_EnableBatteryCharging() 138 PWR->CR4 = (tmpreg | ResistorSelection | PWR_CR4_VBE); in HAL_PWREx_EnableBatteryCharging() 148 CLEAR_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_DisableBatteryCharging() 161 PWR->CR3 |= PWR_CR3_ENB_ULP; in HAL_PWREx_EnablePORMonitorSampling() 171 PWR->CR3 &= ~PWR_CR3_ENB_ULP; in HAL_PWREx_DisablePORMonitorSampling() 194 MODIFY_REG(PWR->CR2, (PWR_CR2_PVDFT | PWR_CR2_PVDRT), sConfigPVD->PVDLevel); in HAL_PWREx_ConfigPVD() 235 SET_BIT(PWR->CR2, PWR_CR2_PVDE); in HAL_PWREx_EnablePVD() 245 CLEAR_BIT(PWR->CR2, PWR_CR2_PVDE); in HAL_PWREx_DisablePVD() 257 SET_BIT(PWR->CR2, PWR_CR2_USV); in HAL_PWREx_EnableVddUSB() 266 CLEAR_BIT(PWR->CR2, PWR_CR2_USV); in HAL_PWREx_DisableVddUSB() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_pwr_ex.c | 85 return (PWR->CR1 & PWR_CR1_VOS); in HAL_PWREx_GetVoltageRange() 117 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) != PWR_REGULATOR_VOLTAGE_SCALE1) in HAL_PWREx_ControlVoltageScaling() 120 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 124 while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) in HAL_PWREx_ControlVoltageScaling() 128 if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) in HAL_PWREx_ControlVoltageScaling() 136 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) != PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 139 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE2); in HAL_PWREx_ControlVoltageScaling() 163 MODIFY_REG(PWR->CR4, PWR_CR4_VBRS, ResistorSelection); in HAL_PWREx_EnableBatteryCharging() 166 SET_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_EnableBatteryCharging() 175 CLEAR_BIT(PWR->CR4, PWR_CR4_VBE); in HAL_PWREx_DisableBatteryCharging() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_pwr_ex.c | 324 …if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LD… in HAL_PWREx_ConfigSupply() 328 if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource) in HAL_PWREx_ConfigSupply() 343 MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource); in HAL_PWREx_ConfigSupply() 387 return (PWR->CR3 & PWR_SUPPLY_CONFIG_MASK); in HAL_PWREx_GetSupplyConfig() 421 if ((PWR->CSR1 & PWR_CSR1_ACTVOS) == VoltageScaling) in HAL_PWREx_ControlVoltageScaling() 429 MODIFY_REG (PWR->SRDCR, PWR_SRDCR_VOS, VoltageScaling); in HAL_PWREx_ControlVoltageScaling() 434 if ((PWR->CR3 & PWR_CR3_LDOEN) == PWR_CR3_LDOEN) in HAL_PWREx_ControlVoltageScaling() 437 MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 462 if ((PWR->CSR1 & PWR_CSR1_ACTVOS) == PWR_REGULATOR_VOLTAGE_SCALE1) in HAL_PWREx_ControlVoltageScaling() 484 MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, VoltageScaling); in HAL_PWREx_ControlVoltageScaling() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32l0xx/drivers/include/ |
D | stm32l0xx_ll_pwr.h | 34 #if defined(PWR) 169 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 176 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 202 SET_BIT(PWR->CR, PWR_CR_LPRUN); in LL_PWR_EnableLowPowerRunMode() 212 CLEAR_BIT(PWR->CR, PWR_CR_LPRUN); in LL_PWR_DisableLowPowerRunMode() 222 return (READ_BIT(PWR->CR, PWR_CR_LPRUN) == (PWR_CR_LPRUN)); in LL_PWR_IsEnabledLowPowerRunMode() 240 SET_BIT(PWR->CR, PWR_CR_LPSDSR); /* => LL_PWR_SetRegulModeLP(LL_PWR_REGU_LPMODES_LOW_POWER) */ in LL_PWR_EnterLowPowerRunMode() 241 SET_BIT(PWR->CR, PWR_CR_LPRUN); /* => LL_PWR_EnableLowPowerRunMode() */ in LL_PWR_EnterLowPowerRunMode() 259 CLEAR_BIT(PWR->CR, PWR_CR_LPRUN); /* => LL_PWR_DisableLowPowerRunMode() */ in LL_PWR_ExitLowPowerRunMode() 260 CLEAR_BIT(PWR->CR, PWR_CR_LPSDSR); /* => LL_PWR_SetRegulModeLP(LL_PWR_REGU_LPMODES_MAIN) */ in LL_PWR_ExitLowPowerRunMode() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32l1xx/drivers/include/ |
D | stm32l1xx_ll_pwr.h | 35 #if defined(PWR) 170 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 177 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 203 SET_BIT(PWR->CR, PWR_CR_LPRUN); in LL_PWR_EnableLowPowerRunMode() 213 CLEAR_BIT(PWR->CR, PWR_CR_LPRUN); in LL_PWR_DisableLowPowerRunMode() 223 return ((READ_BIT(PWR->CR, PWR_CR_LPRUN) == PWR_CR_LPRUN) ? 1UL : 0UL); in LL_PWR_IsEnabledLowPowerRunMode() 241 SET_BIT(PWR->CR, PWR_CR_LPSDSR); /* => LL_PWR_SetRegulModeLP(LL_PWR_REGU_LPMODES_LOW_POWER) */ in LL_PWR_EnterLowPowerRunMode() 242 SET_BIT(PWR->CR, PWR_CR_LPRUN); /* => LL_PWR_EnableLowPowerRunMode() */ in LL_PWR_EnterLowPowerRunMode() 260 CLEAR_BIT(PWR->CR, PWR_CR_LPRUN); /* => LL_PWR_DisableLowPowerRunMode() */ in LL_PWR_ExitLowPowerRunMode() 261 CLEAR_BIT(PWR->CR, PWR_CR_LPSDSR); /* => LL_PWR_SetRegulModeLP(LL_PWR_REGU_LPMODES_MAIN) */ in LL_PWR_ExitLowPowerRunMode() [all …]
|
/hal_stm32-3.4.0/stm32cube/stm32c0xx/drivers/include/ |
D | stm32c0xx_ll_pwr.h | 34 #if defined(PWR) 111 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA))) 112 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB))) 113 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC))) 115 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD))) 117 #define LL_PWR_GPIO_F ((uint32_t)(&(PWR->PUCRF))) 177 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) 184 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) 210 SET_BIT(PWR->CR1, PWR_CR1_FPD_SLP); in LL_PWR_EnableFlashPowerDownInSleep() 220 CLEAR_BIT(PWR->CR1, PWR_CR1_FPD_SLP); in LL_PWR_DisableFlashPowerDownInSleep() [all …]
|