Lines Matching refs:temp

173   uint32_t temp;  in HAL_GPIO_Init()  local
206 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
207 temp &= ~((uint32_t)0xF << ((uint32_t)(position & (uint32_t)0x07) * 4)) ; in HAL_GPIO_Init()
208 temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07) * 4)); in HAL_GPIO_Init()
209 GPIOx->AFR[position >> 3] = temp; in HAL_GPIO_Init()
213 temp = GPIOx->MODER; in HAL_GPIO_Init()
214 temp &= ~(GPIO_MODER_MODER0 << (position * 2)); in HAL_GPIO_Init()
215 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2)); in HAL_GPIO_Init()
216 GPIOx->MODER = temp; in HAL_GPIO_Init()
225 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
226 temp &= ~(GPIO_OSPEEDR_OSPEEDR0 << (position * 2)); in HAL_GPIO_Init()
227 temp |= (GPIO_Init->Speed << (position * 2)); in HAL_GPIO_Init()
228 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
231 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
232 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
233 temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4) << position); in HAL_GPIO_Init()
234 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
238 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
239 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2)); in HAL_GPIO_Init()
240 temp |= ((GPIO_Init->Pull) << (position * 2)); in HAL_GPIO_Init()
241 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
247 temp = EXTI->EXTICR[position >> 2U]; in HAL_GPIO_Init()
248 temp &= ~(0xFFU << (8U * (position & 0x03U))); in HAL_GPIO_Init()
249 temp |= (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U))); in HAL_GPIO_Init()
250 EXTI->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
253 temp = EXTI_CurrentCPU->IMR1; in HAL_GPIO_Init()
254 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
257 temp |= iocurrent; in HAL_GPIO_Init()
259 EXTI_CurrentCPU->IMR1 = temp; in HAL_GPIO_Init()
261 temp = EXTI_CurrentCPU->EMR1; in HAL_GPIO_Init()
262 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
265 temp |= iocurrent; in HAL_GPIO_Init()
267 EXTI_CurrentCPU->EMR1 = temp; in HAL_GPIO_Init()
270 temp = EXTI->RTSR1; in HAL_GPIO_Init()
271 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
274 temp |= iocurrent; in HAL_GPIO_Init()
276 EXTI->RTSR1 = temp; in HAL_GPIO_Init()
278 temp = EXTI->FTSR1; in HAL_GPIO_Init()
279 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
282 temp |= iocurrent; in HAL_GPIO_Init()
284 EXTI->FTSR1 = temp; in HAL_GPIO_Init()