Lines Matching refs:temp
173 uint32_t temp; in HAL_GPIO_Init() local
194 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
195 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
196 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
197 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
200 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
201 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
202 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
203 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
211 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
212 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_Init()
213 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
214 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
226 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
227 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
228 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
229 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
233 temp = GPIOx->MODER; in HAL_GPIO_Init()
234 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
235 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
236 GPIOx->MODER = temp; in HAL_GPIO_Init()
245 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
246 temp &= ~(0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_Init()
247 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
248 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
251 temp = EXTI->RTSR; in HAL_GPIO_Init()
252 temp &= ~(iocurrent); in HAL_GPIO_Init()
255 temp |= iocurrent; in HAL_GPIO_Init()
257 EXTI->RTSR = temp; in HAL_GPIO_Init()
259 temp = EXTI->FTSR; in HAL_GPIO_Init()
260 temp &= ~(iocurrent); in HAL_GPIO_Init()
263 temp |= iocurrent; in HAL_GPIO_Init()
265 EXTI->FTSR = temp; in HAL_GPIO_Init()
267 temp = EXTI->EMR; in HAL_GPIO_Init()
268 temp &= ~(iocurrent); in HAL_GPIO_Init()
271 temp |= iocurrent; in HAL_GPIO_Init()
273 EXTI->EMR = temp; in HAL_GPIO_Init()
276 temp = EXTI->IMR; in HAL_GPIO_Init()
277 temp &= ~(iocurrent); in HAL_GPIO_Init()
280 temp |= iocurrent; in HAL_GPIO_Init()
282 EXTI->IMR = temp; in HAL_GPIO_Init()