Lines Matching refs:position
161 uint32_t position = 0U; in HAL_GPIO_Init() local
171 while (((GPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
174 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()
205 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
206 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
218 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
219 temp &= ~(0x0FUL << ((position & 0x07U) * 4U)) ; in HAL_GPIO_Init()
220 temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
221 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
226 temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
227 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
234 temp = EXTI->EXTICR[position >> 2U]; in HAL_GPIO_Init()
235 temp &= ~((0x0FU) << (8U * (position & 0x03U))); in HAL_GPIO_Init()
236 temp |= (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U))); in HAL_GPIO_Init()
237 EXTI->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
275 position++; in HAL_GPIO_Init()
288 uint32_t position = 0U; in HAL_GPIO_DeInit() local
297 while ((GPIO_Pin >> position) != 0U) in HAL_GPIO_DeInit()
300 iocurrent = (GPIO_Pin) & (1UL << position); in HAL_GPIO_DeInit()
307 temp = EXTI->EXTICR[position >> 2U]; in HAL_GPIO_DeInit()
308 temp &= ((0x0FUL) << (8U * (position & 0x03U))); in HAL_GPIO_DeInit()
309 if (temp == (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U)))) in HAL_GPIO_DeInit()
319 temp = (0x0FUL) << (8U * (position & 0x03U)); in HAL_GPIO_DeInit()
320 EXTI->EXTICR[position >> 2U] &= ~temp; in HAL_GPIO_DeInit()
325 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_DeInit()
328 GPIOx->AFR[position >> 3U] &= ~(0x0FUL << ((position & 0x07U) * 4U)) ; in HAL_GPIO_DeInit()
331 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_DeInit()
334 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
337 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_DeInit()
340 position++; in HAL_GPIO_DeInit()