Home
last modified time | relevance | path

Searched refs:tmpreg1 (Results 1 – 25 of 32) sorted by relevance

12

/hal_stm32-3.4.0/stm32cube/stm32f4xx/drivers/src/Legacy/
Dstm32f4xx_hal_eth.c215 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-3.4.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_eth.c212 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 …]
Dstm32f2xx_hal_rcc_ex.c89 uint32_t tmpreg1 = 0U; in HAL_RCCEx_PeriphCLKConfig() local
159 tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
160 …if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
163 tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
168 RCC->BDCR = tmpreg1; in HAL_RCCEx_PeriphCLKConfig()
Dstm32f2xx_hal_dac.c943 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
958 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
960tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel()
966 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
968 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
/hal_stm32-3.4.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_eth.c214 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 …]
Dstm32f1xx_hal_dac.c962 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
977 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
979tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel()
985 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
987 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
/hal_stm32-3.4.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_eth.c699 uint32_t tmpreg1; in HAL_ETH_Start() local
716 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start()
718 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start()
725 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start()
727 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start()
756 uint32_t tmpreg1; in HAL_ETH_Start_IT() local
786 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT()
788 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT()
795 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT()
797 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT()
[all …]
Dstm32f4xx_hal_rcc_ex.c90 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()
571 uint32_t tmpreg1 = 0U; in HAL_RCCEx_GetPeriphCLKFreq() local
606 tmpreg1 = (RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> 24U; in HAL_RCCEx_GetPeriphCLKFreq()
607 frequency = (vcoinput * ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIN) >> 6U))/(tmpreg1); in HAL_RCCEx_GetPeriphCLKFreq()
610 tmpreg1 = (((RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVQ) >> 8U) + 1U); in HAL_RCCEx_GetPeriphCLKFreq()
611 frequency = frequency/(tmpreg1); in HAL_RCCEx_GetPeriphCLKFreq()
[all …]
Dstm32f4xx_hal_pwr_ex.c538 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()
Dstm32f4xx_hal_dac.c930 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
945 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
947tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel()
953 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
955 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()
/hal_stm32-3.4.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_eth.c699 uint32_t tmpreg1; in HAL_ETH_Start() local
716 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start()
718 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start()
725 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start()
727 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start()
756 uint32_t tmpreg1; in HAL_ETH_Start_IT() local
786 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT()
788 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT()
795 tmpreg1 = (heth->Instance)->MACCR; in HAL_ETH_Start_IT()
797 (heth->Instance)->MACCR = tmpreg1; in HAL_ETH_Start_IT()
[all …]
Dstm32f7xx_hal_rcc_ex.c109 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-3.4.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_dac.c1102 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
1197 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel()
1199 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1203 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1205 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel()
1211 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel()
1213 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1236 tmpreg1 &= ~(((uint32_t)(DAC_MCR_DMADOUBLE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1240 tmpreg1 &= ~(((uint32_t)(DAC_MCR_SINFORMAT1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1244 tmpreg1 &= ~(DAC_MCR_HFSEL); in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_dac.c1202 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()
1347 tmpreg1 &= ~(((uint32_t)(DAC_MCR_DMADOUBLE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1351 tmpreg1 &= ~(((uint32_t)(DAC_MCR_SINFORMAT1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1355 tmpreg1 &= ~(DAC_MCR_HFSEL); in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_dac.c1193 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
1293 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel()
1295 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1299 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1301 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel()
1307 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel()
1309 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1358 tmpreg1 &= ~(((uint32_t)(DAC_MCR_DMADOUBLE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1362 tmpreg1 &= ~(((uint32_t)(DAC_MCR_SINFORMAT1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1366 tmpreg1 &= ~(DAC_MCR_HFSEL); in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_dac.c1030 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
1130 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel()
1132 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1136 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1138 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel()
1144 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel()
1146 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1169 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1171 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel()
1177 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_dac.c1036 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-3.4.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_dac.c1203 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
1298 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel()
1300 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1304 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1306 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel()
1312 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel()
1314 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1318 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1320 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel()
1326 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_dac.c863 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-3.4.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_dac.c1009 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
1107 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel()
1109 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1113 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1115 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel()
1121 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel()
1123 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1146 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1148 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel()
1154 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_dac.c1003 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
1092 tmpreg1 = hdac->Instance->CCR; in HAL_DAC_ConfigChannel()
1094 tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1098 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1100 hdac->Instance->CCR = tmpreg1; in HAL_DAC_ConfigChannel()
1106 tmpreg1 = hdac->Instance->MCR; in HAL_DAC_ConfigChannel()
1108 tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL)); in HAL_DAC_ConfigChannel()
1112 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
1114 hdac->Instance->MCR = tmpreg1; in HAL_DAC_ConfigChannel()
1120 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_dac_ex.c112 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local
127 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
129tmpreg1 &= ~(((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-3.4.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_dac_ex.c773 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local
801 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
813tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel()
819tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_OUTEN1)… in HAL_DAC_ConfigChannel()
823tmpreg1 &= ~(((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-3.4.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_dac.c672 uint32_t tmpreg1 = 0U, tmpreg2 = 0U; in HAL_DAC_ConfigChannel() local
686 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
688tmpreg1 &= ~(((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()
/hal_stm32-3.4.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_dac.c941 uint32_t tmpreg1; in HAL_DAC_ConfigChannel() local
956 tmpreg1 = hdac->Instance->CR; in HAL_DAC_ConfigChannel()
958tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1))… in HAL_DAC_ConfigChannel()
964 tmpreg1 |= tmpreg2 << (Channel & 0x10UL); in HAL_DAC_ConfigChannel()
966 hdac->Instance->CR = tmpreg1; in HAL_DAC_ConfigChannel()

12