Lines Matching refs:position

164   uint32_t position = 0x00U;  in HAL_GPIO_Init()  local
174 while (((GPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
177 iocurrent = (GPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
190 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
191 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
196 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
197 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
208 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
209 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
221 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
222 temp &= ~(0xFU << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
223 temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
224 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
229 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
230 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
240 temp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_Init()
241 temp &= ~(0x0FUL << (4U * (position & 0x03U))); in HAL_GPIO_Init()
242 temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); in HAL_GPIO_Init()
243 SYSCFG->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
281 position++; in HAL_GPIO_Init()
294 uint32_t position = 0x00U; in HAL_GPIO_DeInit() local
303 while ((GPIO_Pin >> position) != 0U) in HAL_GPIO_DeInit()
306 iocurrent = (GPIO_Pin) & (1UL << position); in HAL_GPIO_DeInit()
313 tmp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_DeInit()
314 tmp &= (0x0FUL << (4U * (position & 0x03U))); in HAL_GPIO_DeInit()
315 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)))) in HAL_GPIO_DeInit()
325 tmp = 0x0FUL << (4U * (position & 0x03U)); in HAL_GPIO_DeInit()
326 SYSCFG->EXTICR[position >> 2U] &= ~tmp; in HAL_GPIO_DeInit()
331 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_DeInit()
334 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_DeInit()
337 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_DeInit()
340 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position); in HAL_GPIO_DeInit()
343 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_DeInit()
346 position++; in HAL_GPIO_DeInit()