Lines Matching refs:position
171 uint32_t position = 0x00u; in HAL_GPIO_Init() local
182 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
185 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
197 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
198 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
203 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
204 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
212 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
213 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
225 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
226 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
227 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
228 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
233 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
234 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
248 temp &= ~(1 << position); in HAL_GPIO_Init()
249 temp |= (1 << position); in HAL_GPIO_Init()
253 temp &= ~((1 << position) << 16); in HAL_GPIO_Init()
254 temp |= ((1 << position) << 16); in HAL_GPIO_Init()
266 temp &= ~(1 << position); in HAL_GPIO_Init()
267 temp |= (1 << position); in HAL_GPIO_Init()
271 temp &= ~((1 << position) << 16); in HAL_GPIO_Init()
272 temp |= ((1 << position) << 16); in HAL_GPIO_Init()
284 temp &= ~(1 << position); in HAL_GPIO_Init()
285 temp |= (1 << position); in HAL_GPIO_Init()
289 temp &= ~((1 << position) << 16); in HAL_GPIO_Init()
290 temp |= ((1 << position) << 16); in HAL_GPIO_Init()
302 temp &= ~(1 << position); in HAL_GPIO_Init()
303 temp |= (1 << position); in HAL_GPIO_Init()
307 temp &= ~((1 << position) << 16); in HAL_GPIO_Init()
308 temp |= ((1 << position) << 16); in HAL_GPIO_Init()
315 position++; in HAL_GPIO_Init()
328 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
337 while ((GPIO_Pin >> position) != 0x00u) in HAL_GPIO_DeInit()
340 iocurrent = (GPIO_Pin) & (1uL << position); in HAL_GPIO_DeInit()
351 tmp = ~(1<<position); in HAL_GPIO_DeInit()
355 tmp = ~((1<<position) << 16); in HAL_GPIO_DeInit()
363 tmp = ~(1<<position); in HAL_GPIO_DeInit()
367 tmp = ~((1<<position) << 16); in HAL_GPIO_DeInit()
374 tmp = ~(1<<position); in HAL_GPIO_DeInit()
378 tmp = ~((1<<position) << 16); in HAL_GPIO_DeInit()
386 tmp = ~(1<<position); in HAL_GPIO_DeInit()
390 tmp = ~((1<<position) << 16); in HAL_GPIO_DeInit()
396 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_DeInit()
399 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * 4u)) ; in HAL_GPIO_DeInit()
402 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_DeInit()
405 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_DeInit()
408 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_DeInit()
411 position++; in HAL_GPIO_DeInit()