Lines Matching refs:temp
173 uint32_t temp; in HAL_GPIO_Init() local
196 temp = GPIOx->OSPEEDR; 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()
199 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
202 temp = GPIOx->OTYPER; 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()
205 GPIOx->OTYPER = temp; in HAL_GPIO_Init()
211 temp = GPIOx->PUPDR; 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()
214 GPIOx->PUPDR = temp; 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()
232 temp = GPIOx->MODER; 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()
235 GPIOx->MODER = temp; in HAL_GPIO_Init()
245 temp = SYSCFG->IO_DTR; 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()
256 SYSCFG->IO_DTR = temp; in HAL_GPIO_Init()
262 temp = SYSCFG->IO_IBER; 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()
274 SYSCFG->IO_IBER= temp; in HAL_GPIO_Init()
280 temp = SYSCFG->IO_IEVR; 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()
292 SYSCFG->IO_IEVR= temp; in HAL_GPIO_Init()
298 temp = SYSCFG->IO_IER; 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()
310 SYSCFG->IO_IER= temp; in HAL_GPIO_Init()