Lines Matching refs:position
166 uint32_t position; in HAL_GPIO_Init() local
177 for(position = 0U; position < GPIO_NUMBER; position++) in HAL_GPIO_Init()
180 ioposition = 0x01U << position; in HAL_GPIO_Init()
195 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); in HAL_GPIO_Init()
196 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
201 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
202 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
213 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); in HAL_GPIO_Init()
214 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
224 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
225 temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; in HAL_GPIO_Init()
226 temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); in HAL_GPIO_Init()
227 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
232 temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); in HAL_GPIO_Init()
233 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
243 temp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_Init()
244 temp &= ~(0x0FU << (4U * (position & 0x03U))); in HAL_GPIO_Init()
245 temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); in HAL_GPIO_Init()
246 SYSCFG->EXTICR[position >> 2U] = temp; in HAL_GPIO_Init()
296 uint32_t position; in HAL_GPIO_DeInit() local
305 for(position = 0U; position < GPIO_NUMBER; position++) in HAL_GPIO_DeInit()
308 ioposition = 0x01U << position; in HAL_GPIO_DeInit()
315 tmp = SYSCFG->EXTICR[position >> 2U]; in HAL_GPIO_DeInit()
316 tmp &= (0x0FU << (4U * (position & 0x03U))); in HAL_GPIO_DeInit()
317 if(tmp == ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)))) in HAL_GPIO_DeInit()
328 tmp = 0x0FU << (4U * (position & 0x03U)); in HAL_GPIO_DeInit()
329 SYSCFG->EXTICR[position >> 2U] &= ~tmp; in HAL_GPIO_DeInit()
334 GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2U)); in HAL_GPIO_DeInit()
337 GPIOx->AFR[position >> 3U] &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; in HAL_GPIO_DeInit()
340 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); in HAL_GPIO_DeInit()
343 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_DeInit()
346 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); in HAL_GPIO_DeInit()