Lines Matching refs:temp
169 uint32_t temp; in HAL_GPIO_Init() local
199 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
200 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
201 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
202 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
205 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
206 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
207 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
208 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
217 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
218 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
219 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
220 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
231 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
232 temp &= ~(0xFU << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
233 temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
234 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
238 temp = GPIOx->MODER; in HAL_GPIO_Init()
239 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
240 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
241 GPIOx->MODER = temp; in HAL_GPIO_Init()
250 temp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_Init()
251 temp &= ~(0x0FUL << (4U * (position & 0x03U))); in HAL_GPIO_Init()
252 temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); in HAL_GPIO_Init()
253 SYSCFG->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
256 temp = EXTI->RTSR1; in HAL_GPIO_Init()
257 temp &= ~(iocurrent); in HAL_GPIO_Init()
260 temp |= iocurrent; in HAL_GPIO_Init()
262 EXTI->RTSR1 = temp; in HAL_GPIO_Init()
264 temp = EXTI->FTSR1; in HAL_GPIO_Init()
265 temp &= ~(iocurrent); in HAL_GPIO_Init()
268 temp |= iocurrent; in HAL_GPIO_Init()
270 EXTI->FTSR1 = temp; in HAL_GPIO_Init()
272 temp = EXTI_CurrentCPU->EMR1; in HAL_GPIO_Init()
273 temp &= ~(iocurrent); in HAL_GPIO_Init()
276 temp |= iocurrent; in HAL_GPIO_Init()
278 EXTI_CurrentCPU->EMR1 = temp; in HAL_GPIO_Init()
281 temp = EXTI_CurrentCPU->IMR1; in HAL_GPIO_Init()
282 temp &= ~(iocurrent); in HAL_GPIO_Init()
285 temp |= iocurrent; in HAL_GPIO_Init()
287 EXTI_CurrentCPU->IMR1 = temp; in HAL_GPIO_Init()