Lines Matching refs:temp
172 uint32_t temp; in HAL_GPIO_Init() local
195 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
196 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
197 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
198 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
201 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
202 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
203 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
204 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
213 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
214 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_Init()
215 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
216 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
227 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
228 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
229 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
230 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
234 temp = GPIOx->MODER; in HAL_GPIO_Init()
235 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
236 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
237 GPIOx->MODER = temp; in HAL_GPIO_Init()
243 temp = EXTI->EXTICR[position >> 2u]; in HAL_GPIO_Init()
244 temp &= ~(0x0FuL << (8u * (position & 0x03u))); in HAL_GPIO_Init()
245 temp |= (GPIO_GET_INDEX(GPIOx) << (8u * (position & 0x03u))); in HAL_GPIO_Init()
246 EXTI->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
249 temp = EXTI->RTSR1; in HAL_GPIO_Init()
250 temp &= ~(iocurrent); in HAL_GPIO_Init()
253 temp |= iocurrent; in HAL_GPIO_Init()
255 EXTI->RTSR1 = temp; in HAL_GPIO_Init()
257 temp = EXTI->FTSR1; in HAL_GPIO_Init()
258 temp &= ~(iocurrent); in HAL_GPIO_Init()
261 temp |= iocurrent; in HAL_GPIO_Init()
263 EXTI->FTSR1 = temp; in HAL_GPIO_Init()
266 temp = EXTI->EMR1; in HAL_GPIO_Init()
267 temp &= ~(iocurrent); in HAL_GPIO_Init()
270 temp |= iocurrent; in HAL_GPIO_Init()
272 EXTI->EMR1 = temp; in HAL_GPIO_Init()
274 temp = EXTI->IMR1; in HAL_GPIO_Init()
275 temp &= ~(iocurrent); in HAL_GPIO_Init()
278 temp |= iocurrent; in HAL_GPIO_Init()
280 EXTI->IMR1 = temp; in HAL_GPIO_Init()