Lines Matching refs:temp
174 uint32_t temp = 0x00; in HAL_GPIO_Init() local
197 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
198 CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2)); in HAL_GPIO_Init()
199 SET_BIT(temp, GPIO_Init->Speed << (position * 2)); in HAL_GPIO_Init()
200 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
203 temp = GPIOx->OTYPER; in HAL_GPIO_Init()
204 CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
205 SET_BIT(temp, ((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
206 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
215 temp = GPIOx->PUPDR; in HAL_GPIO_Init()
216 CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2)); in HAL_GPIO_Init()
217 SET_BIT(temp, (GPIO_Init->Pull) << (position * 2)); in HAL_GPIO_Init()
218 GPIOx->PUPDR = temp; in HAL_GPIO_Init()
230 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
231 CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4)); in HAL_GPIO_Init()
232 SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4)); in HAL_GPIO_Init()
233 GPIOx->AFR[position >> 3] = temp; in HAL_GPIO_Init()
237 temp = GPIOx->MODER; in HAL_GPIO_Init()
238 CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2)); in HAL_GPIO_Init()
239 SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2)); in HAL_GPIO_Init()
240 GPIOx->MODER = temp; in HAL_GPIO_Init()
249 temp = SYSCFG->EXTICR[position >> 2]; in HAL_GPIO_Init()
250 CLEAR_BIT(temp, (0x0FU) << (4 * (position & 0x03))); in HAL_GPIO_Init()
251 SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03))); in HAL_GPIO_Init()
252 SYSCFG->EXTICR[position >> 2] = temp; in HAL_GPIO_Init()
255 temp = EXTI->RTSR; in HAL_GPIO_Init()
256 CLEAR_BIT(temp, (uint32_t)iocurrent); in HAL_GPIO_Init()
259 SET_BIT(temp, iocurrent); in HAL_GPIO_Init()
261 EXTI->RTSR = temp; in HAL_GPIO_Init()
263 temp = EXTI->FTSR; in HAL_GPIO_Init()
264 CLEAR_BIT(temp, (uint32_t)iocurrent); in HAL_GPIO_Init()
267 SET_BIT(temp, iocurrent); in HAL_GPIO_Init()
269 EXTI->FTSR = temp; in HAL_GPIO_Init()
271 temp = EXTI->EMR; in HAL_GPIO_Init()
272 CLEAR_BIT(temp, (uint32_t)iocurrent); in HAL_GPIO_Init()
275 SET_BIT(temp, iocurrent); in HAL_GPIO_Init()
277 EXTI->EMR = temp; in HAL_GPIO_Init()
280 temp = EXTI->IMR; in HAL_GPIO_Init()
281 CLEAR_BIT(temp, (uint32_t)iocurrent); in HAL_GPIO_Init()
284 SET_BIT(temp, iocurrent); in HAL_GPIO_Init()
286 EXTI->IMR = temp; in HAL_GPIO_Init()