Lines Matching refs:pos
140 uint32_t currentmode = 0x00, currentpin = 0x00, pinpos = 0x00, pos = 0x00; in GPIO_Init() local
163 pos = ((uint32_t)0x01) << pinpos; in GPIO_Init()
165 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init()
166 if (currentpin == pos) in GPIO_Init()
168 pos = pinpos << 2; in GPIO_Init()
170 pinmask = ((uint32_t)0x0F) << pos; in GPIO_Init()
173 tmpreg |= (currentmode << pos); in GPIO_Init()
198 pos = (((uint32_t)0x01) << (pinpos + 0x08)); in GPIO_Init()
200 currentpin = ((GPIO_InitStruct->GPIO_Pin) & pos); in GPIO_Init()
201 if (currentpin == pos) in GPIO_Init()
203 pos = pinpos << 2; in GPIO_Init()
205 pinmask = ((uint32_t)0x0F) << pos; in GPIO_Init()
208 tmpreg |= (currentmode << pos); in GPIO_Init()
230 pos = ((uint32_t)0x01) << pinpos; in GPIO_Init()
232 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init()
233 if (currentpin == pos) in GPIO_Init()
235 pos = pinpos << 2; in GPIO_Init()
237 pinmask = ((uint32_t)0x0F) << pos; in GPIO_Init()
240 tmpreg |= (currentmode << pos); in GPIO_Init()