Lines Matching refs:position

171   uint32_t position = 0x00u;  in HAL_GPIO_Init()  local
181 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
184 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
195 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
196 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
201 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
202 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
212 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_Init()
213 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
226 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
227 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
228 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
229 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
234 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
235 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
245 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
246 temp &= ~(0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_Init()
247 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
248 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
286 position++; in HAL_GPIO_Init()
299 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
308 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
311 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
318 tmp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
319 tmp &= (0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_DeInit()
320 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) in HAL_GPIO_DeInit()
331 tmp = 0x0FuL << (4u * (position & 0x03u)); in HAL_GPIO_DeInit()
332 SYSCFG->EXTICR[position >> 2u] &= ~tmp; in HAL_GPIO_DeInit()
337 GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2u)); in HAL_GPIO_DeInit()
340 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((uint32_t)(position & 0x07u) * 4u)); in HAL_GPIO_DeInit()
343 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); in HAL_GPIO_DeInit()
346 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position); in HAL_GPIO_DeInit()
349 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); in HAL_GPIO_DeInit()
352 position++; in HAL_GPIO_DeInit()