Lines Matching refs:position
168 uint32_t position = 0x00u; in HAL_GPIO_Init() local
178 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
181 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
194 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * GPIO_OSPEEDR_OSPEED1_Pos)); in HAL_GPIO_Init()
195 temp |= (GPIO_Init->Speed << (position * GPIO_OSPEEDR_OSPEED1_Pos)); in HAL_GPIO_Init()
200 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
201 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
213 temp &= ~(GPIO_PUPDR_PUPD0 << (position * GPIO_PUPDR_PUPD1_Pos)); in HAL_GPIO_Init()
214 temp |= ((GPIO_Init->Pull) << (position * GPIO_PUPDR_PUPD1_Pos)); in HAL_GPIO_Init()
226 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
227 temp &= ~(0xFu << ((position & 0x07u) * GPIO_AFRL_AFSEL1_Pos)); in HAL_GPIO_Init()
228 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * GPIO_AFRL_AFSEL1_Pos)); in HAL_GPIO_Init()
229 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
234 temp &= ~(GPIO_MODER_MODE0 << (position * GPIO_MODER_MODE1_Pos)); in HAL_GPIO_Init()
235 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * GPIO_MODER_MODE1_Pos)); in HAL_GPIO_Init()
242 temp = EXTI->EXTICR[position >> 2u]; in HAL_GPIO_Init()
243 temp &= ~(0x0FuL << ((position & 0x03u) * EXTI_EXTICR1_EXTI1_Pos)); in HAL_GPIO_Init()
244 temp |= (GPIO_GET_INDEX(GPIOx) << ((position & 0x03u) * EXTI_EXTICR1_EXTI1_Pos)); in HAL_GPIO_Init()
245 EXTI->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
283 position++; in HAL_GPIO_Init()
296 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
305 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
308 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
315 tmp = EXTI->EXTICR[position >> 2u]; in HAL_GPIO_DeInit()
316 tmp &= (0x0FuL << ((position & 0x03u) * EXTI_EXTICR1_EXTI1_Pos)); in HAL_GPIO_DeInit()
317 if (tmp == (GPIO_GET_INDEX(GPIOx) << ((position & 0x03u) * EXTI_EXTICR1_EXTI1_Pos))) in HAL_GPIO_DeInit()
327 tmp = 0x0FuL << ((position & 0x03u) * EXTI_EXTICR1_EXTI1_Pos); in HAL_GPIO_DeInit()
328 EXTI->EXTICR[position >> 2u] &= ~tmp; in HAL_GPIO_DeInit()
333 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * GPIO_MODER_MODE1_Pos)); in HAL_GPIO_DeInit()
336 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * GPIO_AFRL_AFSEL1_Pos)) ; in HAL_GPIO_DeInit()
339 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * GPIO_OSPEEDR_OSPEED1_Pos)); in HAL_GPIO_DeInit()
342 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
345 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * GPIO_PUPDR_PUPD1_Pos)); in HAL_GPIO_DeInit()
348 GPIOx->DELAYR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * GPIO_DELAYRL_DLY1_Pos)) ; in HAL_GPIO_DeInit()
351 GPIOx->ADVCFGR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)) ; in HAL_GPIO_DeInit()
354 position++; in HAL_GPIO_DeInit()
526 uint32_t position = 0x00u; in HAL_GPIO_SetRetime() local
537 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_SetRetime()
540 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_SetRetime()
545 temp = GPIOx->ADVCFGR[position >> 3u]; in HAL_GPIO_SetRetime()
547 << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetRetime()
548 temp |= (pRet_Init->Retime << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetRetime()
549 temp |= (pRet_Init->Edge << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetRetime()
550 GPIOx->ADVCFGR[position >> 3u] = temp; in HAL_GPIO_SetRetime()
552 position++; in HAL_GPIO_SetRetime()
566 uint32_t position; in HAL_GPIO_GetRetime() local
580 position = POSITION_VAL(GPIO_Pin); in HAL_GPIO_GetRetime()
583 index = (position & 0x07u) * GPIO_ADVCFGRL_1_Pos; in HAL_GPIO_GetRetime()
584 pRet_Init->Edge = ((GPIOx->ADVCFGR[position >> 3u] in HAL_GPIO_GetRetime()
586 pRet_Init->Retime = ((GPIOx->ADVCFGR[position >> 3u] & (GPIO_ADVCFGRL_RET0 << index)) >> index); in HAL_GPIO_GetRetime()
603 uint32_t position = 0x00u; in HAL_GPIO_SetDelay() local
614 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_SetDelay()
617 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_SetDelay()
622 temp = GPIOx->ADVCFGR[position >> 3u]; in HAL_GPIO_SetDelay()
623 temp &= ~(GPIO_ADVCFGRL_DLYPATH0 << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetDelay()
624 temp |= (pDly_Init->Path << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetDelay()
625 GPIOx->ADVCFGR[position >> 3u] = temp; in HAL_GPIO_SetDelay()
628 temp = GPIOx->DELAYR[position >> 3u]; in HAL_GPIO_SetDelay()
629 temp &= ~(GPIO_DELAYRL_DLY0_Msk << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetDelay()
630 temp |= (pDly_Init->Delay << ((position & 0x07u) * GPIO_ADVCFGRL_1_Pos)); in HAL_GPIO_SetDelay()
631 GPIOx->DELAYR[position >> 3u] = temp; in HAL_GPIO_SetDelay()
633 position++; in HAL_GPIO_SetDelay()
647 uint32_t position; in HAL_GPIO_GetDelay() local
661 position = POSITION_VAL(GPIO_Pin); in HAL_GPIO_GetDelay()
664 index = (position & 0x07u) * GPIO_ADVCFGRL_1_Pos; in HAL_GPIO_GetDelay()
665 pDly_Init->Delay = ((GPIOx->DELAYR[position >> 3u] & (GPIO_DELAYRL_DLY0_Msk << index)) >> index); in HAL_GPIO_GetDelay()
666 pDly_Init->Path = ((GPIOx->ADVCFGR[position >> 3u] & (GPIO_ADVCFGRL_DLYPATH0 << index)) >> index); in HAL_GPIO_GetDelay()