/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/Legacy/ |
D | stm32f4xx_hal_eth.c | 215 uint32_t tmpreg1 = 0U, phyreg = 0U; in HAL_ETH_Init() local 286 tmpreg1 = (heth->Instance)->MACMIIAR; in HAL_ETH_Init() 288 tmpreg1 &= ETH_MACMIIAR_CR_MASK; in HAL_ETH_Init() 297 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div16; in HAL_ETH_Init() 302 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div26; in HAL_ETH_Init() 307 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div42; in HAL_ETH_Init() 312 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div62; in HAL_ETH_Init() 317 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div102; in HAL_ETH_Init() 321 (heth->Instance)->MACMIIAR = (uint32_t)tmpreg1; in HAL_ETH_Init() 1297 uint32_t tmpreg1 = 0U; in HAL_ETH_ReadPHYRegister() local [all …]
|
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_eth.c | 212 uint32_t tmpreg1 = 0U, phyreg = 0U; in HAL_ETH_Init() local 283 tmpreg1 = (heth->Instance)->MACMIIAR; in HAL_ETH_Init() 285 tmpreg1 &= ETH_MACMIIAR_CR_MASK; in HAL_ETH_Init() 294 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div16; in HAL_ETH_Init() 299 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div26; in HAL_ETH_Init() 304 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div42; in HAL_ETH_Init() 309 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_Div62; in HAL_ETH_Init() 313 (heth->Instance)->MACMIIAR = (uint32_t)tmpreg1; in HAL_ETH_Init() 1291 uint32_t tmpreg1 = 0U; in HAL_ETH_ReadPHYRegister() local 1306 tmpreg1 = heth->Instance->MACMIIAR; in HAL_ETH_ReadPHYRegister() [all …]
|
D | stm32f2xx_hal_rcc_ex.c | 88 uint32_t tmpreg1 = 0U; in HAL_RCCEx_PeriphCLKConfig() local 158 tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig() 159 …if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig() 162 tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig() 167 RCC->BDCR = tmpreg1; in HAL_RCCEx_PeriphCLKConfig()
|
D | stm32f2xx_hal_dac.c | 975 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 996 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() 998 tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1)) in HAL_DAC_ConfigChannel() 1005 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1007 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
|
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/ |
D | stm32f1xx_hal_eth.c | 214 uint32_t tmpreg1 = 0U, phyreg = 0U; in HAL_ETH_Init() local 282 tmpreg1 = (heth->Instance)->MACMIIAR; in HAL_ETH_Init() 284 tmpreg1 &= ETH_MACMIIAR_CR_MASK; in HAL_ETH_Init() 293 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_DIV16; in HAL_ETH_Init() 298 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_DIV26; in HAL_ETH_Init() 303 tmpreg1 |= (uint32_t)ETH_MACMIIAR_CR_DIV42; in HAL_ETH_Init() 307 (heth->Instance)->MACMIIAR = (uint32_t)tmpreg1; in HAL_ETH_Init() 1285 uint32_t tmpreg1 = 0U; in HAL_ETH_ReadPHYRegister() local 1300 tmpreg1 = heth->Instance->MACMIIAR; in HAL_ETH_ReadPHYRegister() 1303 tmpreg1 &= ~ETH_MACMIIAR_CR_MASK; in HAL_ETH_ReadPHYRegister() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_rcc.c | 331 uint32_t tmpreg1; in HAL_RCC_OscConfig() local 524 tmpreg1 = RCC->BDCR1; in HAL_RCC_OscConfig() 541 …if ((RCC_OscInitStruct->LSIDiv != (tmpreg1 & RCC_BDCR1_LSI1PREDIV)) && ((tmpreg1 & RCC_BDCR1_LSI1R… in HAL_RCC_OscConfig() 544 tmpreg1 &= ~RCC_BDCR1_LSI1ON; in HAL_RCC_OscConfig() 545 RCC->BDCR1 = tmpreg1; in HAL_RCC_OscConfig() 566 tmpreg1 &= ~RCC_BDCR1_LSI1PREDIV; in HAL_RCC_OscConfig() 567 tmpreg1 |= RCC_OscInitStruct->LSIDiv; in HAL_RCC_OscConfig() 571 tmpreg1 |= RCC_OscInitStruct->LSIState; in HAL_RCC_OscConfig() 572 RCC->BDCR1 = tmpreg1; in HAL_RCC_OscConfig() 589 tmpreg1 &= ~mask; in HAL_RCC_OscConfig() [all …]
|
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_eth.c | 710 uint32_t tmpreg1; in HAL_ETH_Start() local 727 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start() 729 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start() 736 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start() 738 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start() 767 uint32_t tmpreg1; in HAL_ETH_Start_IT() local 784 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT() 786 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT() 803 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT() 805 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT() [all …]
|
D | stm32f7xx_hal_rcc_ex.c | 109 uint32_t tmpreg1 = 0; in HAL_RCCEx_PeriphCLKConfig() local 484 tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); in HAL_RCCEx_PeriphCLKConfig() 488 …__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , tmpreg0, tmpreg1, PeriphClkInit->PLLI2S.PL… in HAL_RCCEx_PeriphCLKConfig() 502 tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); in HAL_RCCEx_PeriphCLKConfig() 507 …_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, tmpreg0, PeriphClkInit->PLLI2S.PLLI2SQ, tmpreg1); in HAL_RCCEx_PeriphCLKConfig() 521 tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); in HAL_RCCEx_PeriphCLKConfig() 525 …RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, tmpreg0, tmpreg1); in HAL_RCCEx_PeriphCLKConfig() 593 tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); in HAL_RCCEx_PeriphCLKConfig() 597 …RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , tmpreg0, PeriphClkInit->PLLSAI.PLLSAIQ, tmpreg1); in HAL_RCCEx_PeriphCLKConfig() 611 tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); in HAL_RCCEx_PeriphCLKConfig() [all …]
|
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_eth.c | 710 uint32_t tmpreg1; in HAL_ETH_Start() local 727 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start() 729 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start() 736 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start() 738 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start() 767 uint32_t tmpreg1; in HAL_ETH_Start_IT() local 784 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT() 786 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT() 803 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT() 805 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT() [all …]
|
D | stm32f4xx_hal_rcc_ex.c | 90 uint32_t tmpreg1 = 0U; in HAL_RCCEx_PeriphCLKConfig() local 200 tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig() 201 …if ((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)… in HAL_RCCEx_PeriphCLKConfig() 204 tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig() 209 RCC->BDCR = tmpreg1; in HAL_RCCEx_PeriphCLKConfig() 582 uint32_t tmpreg1 = 0U; in HAL_RCCEx_GetPeriphCLKFreq() local 617 tmpreg1 = (RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> 24U; in HAL_RCCEx_GetPeriphCLKFreq() 618 frequency = (vcoinput * ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIN) >> 6U)) / (tmpreg1); in HAL_RCCEx_GetPeriphCLKFreq() 621 tmpreg1 = (((RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVQ) >> 8U) + 1U); in HAL_RCCEx_GetPeriphCLKFreq() 622 frequency = frequency / (tmpreg1); in HAL_RCCEx_GetPeriphCLKFreq() [all …]
|
D | stm32f4xx_hal_pwr_ex.c | 538 uint32_t tmpreg1 = 0U; in HAL_PWREx_EnterUnderDriveSTOPMode() local 554 tmpreg1 = PWR->CR; in HAL_PWREx_EnterUnderDriveSTOPMode() 556 tmpreg1 &= (uint32_t)~(PWR_CR_PDDS | PWR_CR_LPDS | PWR_CR_LPUDS | PWR_CR_MRUDS); in HAL_PWREx_EnterUnderDriveSTOPMode() 559 tmpreg1 |= Regulator; in HAL_PWREx_EnterUnderDriveSTOPMode() 562 PWR->CR = tmpreg1; in HAL_PWREx_EnterUnderDriveSTOPMode()
|
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_dac.c | 1149 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1264 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1266 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1270 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1272 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1278 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1280 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1305 tmpreg1 &= ~(((uint32_t)(DAC_MCR_DMADOUBLE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1309 tmpreg1 &= ~(((uint32_t)(DAC_MCR_SINFORMAT1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1313 tmpreg1 &= ~(DAC_MCR_HFSEL); in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_dac.c | 1236 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1354 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1356 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1360 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1362 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1368 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1370 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1395 tmpreg1 &= ~(((uint32_t)(DAC_MCR_DMADOUBLE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1399 tmpreg1 &= ~(((uint32_t)(DAC_MCR_SINFORMAT1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1403 tmpreg1 &= ~(DAC_MCR_HFSEL); in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_dac.c | 1224 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1338 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1340 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1344 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1346 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1352 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1354 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1403 tmpreg1 &= ~(((uint32_t)(DAC_MCR_DMADOUBLE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1407 tmpreg1 &= ~(((uint32_t)(DAC_MCR_SINFORMAT1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1411 tmpreg1 &= ~(DAC_MCR_HFSEL); in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_dac.c | 1036 uint32_t tmpreg1, tmpreg2; in HAL_DAC_ConfigChannel() local 1124 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1126 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << Channel); in HAL_DAC_ConfigChannel() 1130 tmpreg1 |= tmpreg2 << Channel; in HAL_DAC_ConfigChannel() 1132 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1138 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1140 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << Channel); in HAL_DAC_ConfigChannel() 1144 tmpreg1 |= tmpreg2 << Channel; in HAL_DAC_ConfigChannel() 1146 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 1152 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_dac.c | 1053 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1156 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1158 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1162 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1164 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1170 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1172 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1176 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1178 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 1184 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_dac.c | 1203 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1306 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1308 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1312 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1314 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1320 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1322 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1326 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1328 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 1334 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_dac.c | 863 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 930 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 932 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 936 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 938 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 944 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 946 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 950 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 952 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 958 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/ |
D | stm32u0xx_hal_dac.c | 871 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 945 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 947 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 951 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 953 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 959 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 961 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 986 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 988 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 994 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/ |
D | stm32h7rsxx_hal_rcc.c | 441 uint32_t tmpreg1; in HAL_RCC_OscConfig() local 524 tmpreg1 = (RCC->CR & RCC_CR_HSIDIV); in HAL_RCC_OscConfig() 526 (tmpreg1 != RCC_OscInitStruct->HSIDiv)) in HAL_RCC_OscConfig() 790 tmpreg1 = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN) >> RCC_PLL1FRACR_FRACN_Pos); in HAL_RCC_OscConfig() 792 if (RCC_OscInitStruct->PLL1.PLLFractional != tmpreg1) in HAL_RCC_OscConfig() 2095 uint32_t tmpreg1; in RCC_PLL1_GetVCOOutputFreq() local 2104 tmpreg1 = RCC->PLLCKSELR; in RCC_PLL1_GetVCOOutputFreq() 2108 pllm = (tmpreg1 & RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos; in RCC_PLL1_GetVCOOutputFreq() 2118 if ((tmpreg1 & RCC_PLLCFGR_PLL1FRACEN) != 0U) in RCC_PLL1_GetVCOOutputFreq() 2128 switch (tmpreg1 & RCC_PLLCKSELR_PLLSRC) in RCC_PLL1_GetVCOOutputFreq() [all …]
|
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_dac.c | 1035 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1136 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1138 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1142 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1144 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1150 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1152 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1156 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1158 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 1164 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_dac.c | 1041 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local 1151 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel() 1153 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1157 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1159 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel() 1165 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel() 1167 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel() 1192 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel() 1194 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel() 1200 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() [all …]
|
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_hal_dac_ex.c | 112 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local 127 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() 129 …tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel() 135 tmpreg1 |= tmpreg2 << Channel; in HAL_DAC_ConfigChannel() 137 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel() 166 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local 181 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() 183 tmpreg1 &= ~(((uint32_t)(DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1)) << Channel); in HAL_DAC_ConfigChannel() 189 tmpreg1 |= tmpreg2 << Channel; in HAL_DAC_ConfigChannel() 191 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
|
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_hal_dac_ex.c | 773 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local 801 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() 813 …tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel() 819 …tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_OUTEN1)… in HAL_DAC_ConfigChannel() 823 …tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel() 828 tmpreg1 |= tmpreg2 << Channel; in HAL_DAC_ConfigChannel() 830 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_dac.c | 672 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local 686 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel() 688 …tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel() 694 tmpreg1 |= tmpreg2 << Channel; in HAL_DAC_ConfigChannel() 696 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
|