Lines Matching refs:temp
167 uint32_t temp; in HAL_GPIO_Init() local
190 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
191 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
192 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
193 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
196 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
197 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
198 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
199 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
208 temp = GPIOx->ASCR; in HAL_GPIO_Init()
209 temp &= ~(GPIO_ASCR_ASC0 << position) ; in HAL_GPIO_Init()
210 temp |= (((GPIO_Init->Mode & GPIO_MODE_ANALOG_ADC_CONTROL) >> 3) << position); in HAL_GPIO_Init()
211 GPIOx->ASCR = temp; in HAL_GPIO_Init()
222 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
223 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
224 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
225 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
236 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
237 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
238 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
239 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
243 temp = GPIOx->MODER; in HAL_GPIO_Init()
244 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
245 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
246 GPIOx->MODER = temp; in HAL_GPIO_Init()
255 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
256 temp &= ~(0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_Init()
257 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
258 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
261 temp = EXTI->RTSR1; in HAL_GPIO_Init()
262 temp &= ~(iocurrent); in HAL_GPIO_Init()
265 temp |= iocurrent; in HAL_GPIO_Init()
267 EXTI->RTSR1 = temp; in HAL_GPIO_Init()
269 temp = EXTI->FTSR1; in HAL_GPIO_Init()
270 temp &= ~(iocurrent); in HAL_GPIO_Init()
273 temp |= iocurrent; in HAL_GPIO_Init()
275 EXTI->FTSR1 = temp; in HAL_GPIO_Init()
278 temp = EXTI->EMR1; in HAL_GPIO_Init()
279 temp &= ~(iocurrent); in HAL_GPIO_Init()
282 temp |= iocurrent; in HAL_GPIO_Init()
284 EXTI->EMR1 = temp; in HAL_GPIO_Init()
286 temp = EXTI->IMR1; in HAL_GPIO_Init()
287 temp &= ~(iocurrent); in HAL_GPIO_Init()
290 temp |= iocurrent; in HAL_GPIO_Init()
292 EXTI->IMR1 = temp; in HAL_GPIO_Init()