Lines Matching refs:position
180 uint32_t position = 0x00u; in HAL_GPIO_Init() local
194 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
197 ioposition = (0x01uL << position); in HAL_GPIO_Init()
281 registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); in HAL_GPIO_Init()
292 temp = AFIO->EXTICR[position >> 2u]; in HAL_GPIO_Init()
293 CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
294 SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
295 AFIO->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
340 position++; in HAL_GPIO_Init()
353 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
364 while ((GPIO_Pin >> position) != 0u) in HAL_GPIO_DeInit()
367 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
374 tmp = AFIO->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
375 tmp &= 0x0FuL << (4u * (position & 0x03u)); in HAL_GPIO_DeInit()
376 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) in HAL_GPIO_DeInit()
386 tmp = 0x0FuL << (4u * (position & 0x03u)); in HAL_GPIO_DeInit()
387 CLEAR_BIT(AFIO->EXTICR[position >> 2u], tmp); in HAL_GPIO_DeInit()
393 registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); in HAL_GPIO_DeInit()
402 position++; in HAL_GPIO_DeInit()