Lines Matching refs:temp

163   uint32_t temp;  in HAL_GPIO_Init()  local
186 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
187 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
188 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
189 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
192 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
193 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
194 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
195 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
204 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
205 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
206 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
207 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
218 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
219 temp &= ~(0x0FUL << ((position & 0x07U) * 4U)) ; in HAL_GPIO_Init()
220 temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
221 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
225 temp = GPIOx->MODER; in HAL_GPIO_Init()
226 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
227 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
228 GPIOx->MODER = temp; in HAL_GPIO_Init()
234 temp = EXTI->EXTICR[position >> 2U]; in HAL_GPIO_Init()
235 temp &= ~((0x0FU) << (8U * (position & 0x03U))); in HAL_GPIO_Init()
236 temp |= (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U))); in HAL_GPIO_Init()
237 EXTI->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
240 temp = EXTI->RTSR1; in HAL_GPIO_Init()
241 temp &= ~(iocurrent); in HAL_GPIO_Init()
244 temp |= iocurrent; in HAL_GPIO_Init()
246 EXTI->RTSR1 = temp; in HAL_GPIO_Init()
248 temp = EXTI->FTSR1; in HAL_GPIO_Init()
249 temp &= ~(iocurrent); in HAL_GPIO_Init()
252 temp |= iocurrent; in HAL_GPIO_Init()
254 EXTI->FTSR1 = temp; in HAL_GPIO_Init()
257 temp = EXTI->EMR1; in HAL_GPIO_Init()
258 temp &= ~(iocurrent); in HAL_GPIO_Init()
261 temp |= iocurrent; in HAL_GPIO_Init()
263 EXTI->EMR1 = temp; in HAL_GPIO_Init()
265 temp = EXTI->IMR1; in HAL_GPIO_Init()
266 temp &= ~(iocurrent); in HAL_GPIO_Init()
269 temp |= iocurrent; in HAL_GPIO_Init()
271 EXTI->IMR1 = temp; in HAL_GPIO_Init()
290 uint32_t temp; in HAL_GPIO_DeInit() local
307 temp = EXTI->EXTICR[position >> 2U]; in HAL_GPIO_DeInit()
308 temp &= ((0x0FUL) << (8U * (position & 0x03U))); in HAL_GPIO_DeInit()
309 if (temp == (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U)))) in HAL_GPIO_DeInit()
319 temp = (0x0FUL) << (8U * (position & 0x03U)); in HAL_GPIO_DeInit()
320 EXTI->EXTICR[position >> 2U] &= ~temp; in HAL_GPIO_DeInit()
451 __IO uint32_t temp = GPIO_LCKR_LCKK; in HAL_GPIO_LockPin() local
458 temp |= GPIO_Pin; in HAL_GPIO_LockPin()
460 GPIOx->LCKR = temp; in HAL_GPIO_LockPin()
464 GPIOx->LCKR = temp; in HAL_GPIO_LockPin()
466 temp = GPIOx->LCKR; in HAL_GPIO_LockPin()
561 uint32_t temp; in HAL_GPIO_ConfigPinAttributes() local
568 temp = GPIOx->SECCFGR; in HAL_GPIO_ConfigPinAttributes()
579 temp &= ~(GPIO_SECCFGR_SEC0 << position) ; in HAL_GPIO_ConfigPinAttributes()
580 temp |= (PinAttributes << position); in HAL_GPIO_ConfigPinAttributes()
586 GPIOx->SECCFGR = temp; in HAL_GPIO_ConfigPinAttributes()