Lines Matching refs:position
166 uint32_t position = 0x00u; in HAL_GPIO_Init() local
176 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
179 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
192 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * GPIO_OSPEEDR_OSPEED1_Pos)); in HAL_GPIO_Init()
193 temp |= (GPIO_Init->Speed << (position * GPIO_OSPEEDR_OSPEED1_Pos)); 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()
210 temp &= ~(GPIO_PUPDR_PUPD0 << (position * GPIO_PUPDR_PUPD1_Pos)); in HAL_GPIO_Init()
211 temp |= ((GPIO_Init->Pull) << (position * GPIO_PUPDR_PUPD1_Pos)); in HAL_GPIO_Init()
223 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
224 temp &= ~(0xFu << ((position & 0x07u) * GPIO_AFRL_AFSEL1_Pos)); in HAL_GPIO_Init()
225 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * GPIO_AFRL_AFSEL1_Pos)); in HAL_GPIO_Init()
226 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
231 temp &= ~(GPIO_MODER_MODE0 << (position * GPIO_MODER_MODE1_Pos)); in HAL_GPIO_Init()
232 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * GPIO_MODER_MODE1_Pos)); in HAL_GPIO_Init()
239 temp = SBS->EXTICR[position >> 2u]; in HAL_GPIO_Init()
240 temp &= ~(0x0FuL << ((position & 0x03u) * SBS_EXTICR1_PC_EXTI1_Pos)); in HAL_GPIO_Init()
241 temp |= (GPIO_GET_INDEX(GPIOx) << ((position & 0x03u) * SBS_EXTICR1_PC_EXTI1_Pos)); in HAL_GPIO_Init()
242 SBS->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
280 position++; in HAL_GPIO_Init()
293 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
302 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
305 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
312 tmp = SBS->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
313 tmp &= (0x0FuL << ((position & 0x03u) * SBS_EXTICR1_PC_EXTI1_Pos)); in HAL_GPIO_DeInit()
314 if (tmp == (GPIO_GET_INDEX(GPIOx) << ((position & 0x03u) * SBS_EXTICR1_PC_EXTI1_Pos))) in HAL_GPIO_DeInit()
325 tmp = 0x0FuL << ((position & 0x03u) * SBS_EXTICR1_PC_EXTI1_Pos); in HAL_GPIO_DeInit()
326 SBS->EXTICR[position >> 2u] &= ~tmp; in HAL_GPIO_DeInit()
331 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * GPIO_MODER_MODE1_Pos)); in HAL_GPIO_DeInit()
334 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * GPIO_AFRL_AFSEL1_Pos)) ; in HAL_GPIO_DeInit()
337 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * GPIO_OSPEEDR_OSPEED1_Pos)); in HAL_GPIO_DeInit()
340 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
343 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * GPIO_PUPDR_PUPD1_Pos)); in HAL_GPIO_DeInit()
346 position++; in HAL_GPIO_DeInit()