Lines Matching refs:position

161   uint32_t position = 0x00u;  in HAL_GPIO_Init()  local
172 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
175 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
187 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
188 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
193 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
194 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
202 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
203 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
215 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
216 temp &= ~(0xFU << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
217 temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
218 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
223 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
224 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
231 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
232 temp &= ~(0x07uL << (4U * (position & 0x03U))); in HAL_GPIO_Init()
233 temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); in HAL_GPIO_Init()
234 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
288 position++; in HAL_GPIO_Init()
301 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
310 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
313 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
320 tmp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
321 tmp &= (0x07uL << (4U * (position & 0x03U))); in HAL_GPIO_DeInit()
322 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)))) in HAL_GPIO_DeInit()
338 tmp = 0x07uL << (4u * (position & 0x03U)); in HAL_GPIO_DeInit()
339 SYSCFG->EXTICR[position >> 2u] &= ~tmp; in HAL_GPIO_DeInit()
344 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_DeInit()
347 GPIOx->AFR[position >> 3U] &= ~(0xFU << ((position & 0x07U) * 4U)) ; in HAL_GPIO_DeInit()
350 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_DeInit()
353 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
356 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_DeInit()
359 position++; in HAL_GPIO_DeInit()