Lines Matching refs:tmpreg
154 uint32_t tmpreg = 0x00, pinmask = 0x00; in GPIO_Init() local
173 tmpreg = GPIOx->CRL; in GPIO_Init()
184 tmpreg &= ~pinmask; in GPIO_Init()
186 tmpreg |= (currentmode << pos); in GPIO_Init()
202 GPIOx->CRL = tmpreg; in GPIO_Init()
208 tmpreg = GPIOx->CRH; in GPIO_Init()
219 tmpreg &= ~pinmask; in GPIO_Init()
221 tmpreg |= (currentmode << pos); in GPIO_Init()
234 GPIOx->CRH = tmpreg; in GPIO_Init()
447 uint32_t tmpreg = 0x00; in GPIO_EventOutputConfig() local
452 tmpreg = AFIO->EVCR; in GPIO_EventOutputConfig()
454 tmpreg &= EVCR_PORTPINCONFIG_MASK; in GPIO_EventOutputConfig()
455 tmpreg |= (uint32_t)GPIO_PortSource << 0x04; in GPIO_EventOutputConfig()
456 tmpreg |= GPIO_PinSource; in GPIO_EventOutputConfig()
457 AFIO->EVCR = tmpreg; in GPIO_EventOutputConfig()
509 uint32_t tmp = 0x00, tmp1 = 0x00, tmpreg = 0x00, tmpmask = 0x00; in GPIO_PinRemapConfig() local
514 tmpreg = AFIO->MAPR; in GPIO_PinRemapConfig()
519 tmpreg &= DBGAFR_SWJCFG_MASK; in GPIO_PinRemapConfig()
525 tmpreg &= ~tmp1; in GPIO_PinRemapConfig()
526 tmpreg |= ~DBGAFR_SWJCFG_MASK; in GPIO_PinRemapConfig()
530 tmpreg &= ~(tmp << ((GPIO_Remap >> 0x15) * 0x10)); in GPIO_PinRemapConfig()
531 tmpreg |= ~DBGAFR_SWJCFG_MASK; in GPIO_PinRemapConfig()
535 tmpreg |= (tmp << ((GPIO_Remap >> 0x15) * 0x10)); in GPIO_PinRemapConfig()
537 AFIO->MAPR = tmpreg; in GPIO_PinRemapConfig()