Lines Matching refs:position
165 uint32_t position = 0x00u; in HAL_GPIO_Init() local
175 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
178 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
191 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
192 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
197 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
198 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
209 temp &= ~(GPIO_ASCR_ASC0 << position) ; in HAL_GPIO_Init()
210 temp |= (((GPIO_Init->Mode & GPIO_MODE_ANALOG_ADC_CONTROL) >> 3) << position); in HAL_GPIO_Init()
223 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
224 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
236 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
237 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
238 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
239 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
244 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
245 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
255 temp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_Init()
256 temp &= ~(0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_Init()
257 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
258 SYSCFG->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
296 position++; in HAL_GPIO_Init()
309 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
318 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
321 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
328 tmp = SYSCFG->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
329 tmp &= (0x0FuL << (4u * (position & 0x03u))); in HAL_GPIO_DeInit()
330 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) in HAL_GPIO_DeInit()
340 tmp = 0x0FuL << (4u * (position & 0x03u)); in HAL_GPIO_DeInit()
341 SYSCFG->EXTICR[position >> 2u] &= ~tmp; in HAL_GPIO_DeInit()
346 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_DeInit()
349 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * 4u)) ; in HAL_GPIO_DeInit()
352 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_DeInit()
355 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
358 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_DeInit()
362 GPIOx->ASCR &= ~(GPIO_ASCR_ASC0<< position); in HAL_GPIO_DeInit()
366 position++; in HAL_GPIO_DeInit()