Lines Matching refs:temp
175 uint32_t temp; in HAL_GPIO_Init() local
197 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
198 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); in HAL_GPIO_Init()
199 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
200 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
203 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
204 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
205 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
206 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
215 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
216 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); in HAL_GPIO_Init()
217 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
218 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
230 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
231 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
232 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
233 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
237 temp = GPIOx->MODER; in HAL_GPIO_Init()
238 temp &= ~(GPIO_MODER_MODER0 << (position * 2u)); in HAL_GPIO_Init()
239 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
240 GPIOx->MODER = temp; in HAL_GPIO_Init()
249 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
250 temp &= ~(0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_Init()
251 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
252 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
255 temp = EXTI->RTSR; in HAL_GPIO_Init()
256 temp &= ~(iocurrent); in HAL_GPIO_Init()
259 temp |= iocurrent; in HAL_GPIO_Init()
261 EXTI->RTSR = temp; in HAL_GPIO_Init()
263 temp = EXTI->FTSR; in HAL_GPIO_Init()
264 temp &= ~(iocurrent); in HAL_GPIO_Init()
267 temp |= iocurrent; in HAL_GPIO_Init()
269 EXTI->FTSR = temp; in HAL_GPIO_Init()
271 temp = EXTI->EMR; in HAL_GPIO_Init()
272 temp &= ~(iocurrent); in HAL_GPIO_Init()
275 temp |= iocurrent; in HAL_GPIO_Init()
277 EXTI->EMR = temp; in HAL_GPIO_Init()
280 temp = EXTI->IMR; in HAL_GPIO_Init()
281 temp &= ~(iocurrent); in HAL_GPIO_Init()
284 temp |= iocurrent; in HAL_GPIO_Init()
286 EXTI->IMR = temp; in HAL_GPIO_Init()