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()
201 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
202 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
203 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
204 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
215 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
216 temp &= ~(0xFU << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
217 temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
218 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
222 temp = GPIOx->MODER; in HAL_GPIO_Init()
223 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
224 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
225 GPIOx->MODER = temp; in HAL_GPIO_Init()
231 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
232 temp &= ~(0x07uL << (4U * (position & 0x03U))); in HAL_GPIO_Init()
233 temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); in HAL_GPIO_Init()
234 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
237 temp = EXTI->RTSR1; in HAL_GPIO_Init()
238 temp &= ~(iocurrent); in HAL_GPIO_Init()
241 temp |= iocurrent; in HAL_GPIO_Init()
243 EXTI->RTSR1 = temp; in HAL_GPIO_Init()
245 temp = EXTI->FTSR1; in HAL_GPIO_Init()
246 temp &= ~(iocurrent); in HAL_GPIO_Init()
249 temp |= iocurrent; in HAL_GPIO_Init()
251 EXTI->FTSR1 = temp; in HAL_GPIO_Init()
255 temp = EXTI->C2IMR1; in HAL_GPIO_Init()
257 temp = EXTI->IMR1; in HAL_GPIO_Init()
259 temp &= ~(iocurrent); in HAL_GPIO_Init()
262 temp |= iocurrent; in HAL_GPIO_Init()
265 EXTI->C2IMR1 = temp; in HAL_GPIO_Init()
267 EXTI->IMR1 = temp; in HAL_GPIO_Init()
271 temp = EXTI->C2EMR1; in HAL_GPIO_Init()
273 temp = EXTI->EMR1; in HAL_GPIO_Init()
275 temp &= ~(iocurrent); in HAL_GPIO_Init()
278 temp |= iocurrent; in HAL_GPIO_Init()
281 EXTI->C2EMR1 = temp; in HAL_GPIO_Init()
283 EXTI->EMR1 = temp; in HAL_GPIO_Init()