Lines Matching refs:position

158   uint32_t position = 0x00U;  in HAL_GPIO_Init()  local
167 while (((GPIO_Init->Pin) >> position) != 0) in HAL_GPIO_Init()
170 iocurrent = (GPIO_Init->Pin) & (1U << position); 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()
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()
201 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
202 temp |= ((GPIO_Init->Pull) << (position * 2U)); 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()
222 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
223 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); 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()
273 position++; in HAL_GPIO_Init()
288 uint32_t position = 0x00U; in HAL_GPIO_DeInit() local
296 while ((GPIO_Pin >> position) != 0) in HAL_GPIO_DeInit()
299 iocurrent = (GPIO_Pin) & (1U << position); in HAL_GPIO_DeInit()
306 tmp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_DeInit()
307 tmp &= ((0x0FUL) << (4U * (position & 0x03U))); in HAL_GPIO_DeInit()
308 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)))) in HAL_GPIO_DeInit()
318 tmp = (0x0FUL) << (4U * (position & 0x03U)); in HAL_GPIO_DeInit()
319 SYSCFG->EXTICR[position >> 2U] &= ~tmp; in HAL_GPIO_DeInit()
324 GPIOx->MODER |= (GPIO_MODE_ANALOG << (position * 2U)); in HAL_GPIO_DeInit()
327 GPIOx->AFR[position >> 3U] &= ~(0xFUL << ((uint32_t)(position & 0x07UL) * 4U)); in HAL_GPIO_DeInit()
330 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_DeInit()
333 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position); in HAL_GPIO_DeInit()
336 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEED0 << (position * 2U)); in HAL_GPIO_DeInit()
338 position++; in HAL_GPIO_DeInit()