Lines Matching refs:position

166   uint32_t position = 0x00u;  in HAL_GPIO_Init()  local
177 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
180 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
192 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
193 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
198 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
199 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
207 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
208 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
220 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
221 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
222 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
223 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
228 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
229 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
236 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
237 temp &= ~(0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_Init()
238 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
239 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
277 position++; in HAL_GPIO_Init()
290 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
299 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
302 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
309 tmp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
310 tmp &= (0x0FUL << (4u * (position & 0x03u))); in HAL_GPIO_DeInit()
311 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) in HAL_GPIO_DeInit()
321 tmp = 0x0FuL << (4u * (position & 0x03u)); in HAL_GPIO_DeInit()
322 SYSCFG->EXTICR[position >> 2u] &= ~tmp; in HAL_GPIO_DeInit()
327 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_DeInit()
330 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * 4u)) ; in HAL_GPIO_DeInit()
333 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_DeInit()
336 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
339 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_DeInit()
342 position++; in HAL_GPIO_DeInit()