Lines Matching refs:temp
160 uint32_t temp = 0x00U; in HAL_GPIO_Init() local
182 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
183 temp &= ~(GPIO_OSPEEDER_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
184 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
185 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
188 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
189 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
190 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
191 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
200 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
201 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
202 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
203 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
214 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
215 temp &= ~(0xFUL << ((uint32_t)(position & 0x07UL) * 4U)); in HAL_GPIO_Init()
216 temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07U) * 4U)); in HAL_GPIO_Init()
217 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
221 temp = GPIOx->MODER; in HAL_GPIO_Init()
222 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
223 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
224 GPIOx->MODER = temp; in HAL_GPIO_Init()
233 temp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_Init()
234 CLEAR_BIT(temp, (0x0FUL) << (4U * (position & 0x03U))); in HAL_GPIO_Init()
235 SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03U))); in HAL_GPIO_Init()
236 SYSCFG->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
239 temp = EXTI->RTSR; in HAL_GPIO_Init()
240 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
243 temp |= iocurrent; in HAL_GPIO_Init()
245 EXTI->RTSR = temp; in HAL_GPIO_Init()
247 temp = EXTI->FTSR; in HAL_GPIO_Init()
248 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
251 temp |= iocurrent; in HAL_GPIO_Init()
253 EXTI->FTSR = temp; in HAL_GPIO_Init()
255 temp = EXTI->EMR; in HAL_GPIO_Init()
256 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
259 temp |= iocurrent; in HAL_GPIO_Init()
261 EXTI->EMR = temp; in HAL_GPIO_Init()
264 temp = EXTI->IMR; in HAL_GPIO_Init()
265 temp &= ~((uint32_t)iocurrent); in HAL_GPIO_Init()
268 temp |= iocurrent; in HAL_GPIO_Init()
270 EXTI->IMR = temp; in HAL_GPIO_Init()