Lines Matching refs:tmp8

74     uint8_t tmp8;  in CMP_Init()  local
84tmp8 = (uint8_t)(base->CR1 & ~(CMP_CR1_PMODE_MASK | CMP_CR1_INV_MASK | CMP_CR1_COS_MASK | CMP_CR1_… in CMP_Init()
87 tmp8 |= CMP_CR1_PMODE_MASK; in CMP_Init()
91 tmp8 |= CMP_CR1_INV_MASK; in CMP_Init()
95 tmp8 |= CMP_CR1_COS_MASK; in CMP_Init()
99 tmp8 |= CMP_CR1_OPE_MASK; in CMP_Init()
104 tmp8 |= CMP_CR1_TRIGM_MASK; in CMP_Init()
108 tmp8 &= ~(uint8_t)CMP_CR1_TRIGM_MASK; in CMP_Init()
111 base->CR1 = tmp8; in CMP_Init()
114 tmp8 = base->CR0 & ~(uint8_t)CMP_CR0_HYSTCTR_MASK; in CMP_Init()
115 tmp8 |= CMP_CR0_HYSTCTR(config->hysteresisMode); in CMP_Init()
116 base->CR0 = tmp8; in CMP_Init()
192 uint8_t tmp8 = base->MUXCR; in CMP_SetInputChannels() local
194 tmp8 &= ~(uint8_t)(CMP_MUXCR_PSEL_MASK | CMP_MUXCR_MSEL_MASK); in CMP_SetInputChannels()
195 tmp8 |= CMP_MUXCR_PSEL(positiveChannel) | CMP_MUXCR_MSEL(negativeChannel); in CMP_SetInputChannels()
196 base->MUXCR = tmp8; in CMP_SetInputChannels()
213 …uint8_t tmp8 = (uint8_t)(base->SCR & ~(CMP_SCR_CFR_MASK | CMP_SCR_CFF_MASK)); /* To avoid change t… in CMP_EnableDMA() local
217 tmp8 |= CMP_SCR_DMAEN_MASK; in CMP_EnableDMA()
221 tmp8 &= ~(uint8_t)CMP_SCR_DMAEN_MASK; in CMP_EnableDMA()
223 base->SCR = tmp8; in CMP_EnableDMA()
237 uint8_t tmp8; in CMP_SetFilterConfig() local
251 tmp8 = (uint8_t)(base->CR0 & ~CMP_CR0_FILTER_CNT_MASK); in CMP_SetFilterConfig()
252 tmp8 |= CMP_CR0_FILTER_CNT(config->filterCount); in CMP_SetFilterConfig()
253 base->CR0 = tmp8; in CMP_SetFilterConfig()
266 uint8_t tmp8 = 0U; in CMP_SetDACConfig() local
275 tmp8 |= CMP_DACCR_DACEN_MASK; /* Enable the internal DAC. */ in CMP_SetDACConfig()
278 tmp8 |= CMP_DACCR_VRSEL_MASK; in CMP_SetDACConfig()
280 tmp8 |= CMP_DACCR_VOSEL(config->DACValue); in CMP_SetDACConfig()
282 base->DACCR = tmp8; in CMP_SetDACConfig()
293 …uint8_t tmp8 = (uint8_t)(base->SCR & ~(CMP_SCR_CFR_MASK | CMP_SCR_CFF_MASK)); /* To avoid change t… in CMP_EnableInterrupts() local
297 tmp8 |= CMP_SCR_IER_MASK; in CMP_EnableInterrupts()
301 tmp8 |= CMP_SCR_IEF_MASK; in CMP_EnableInterrupts()
303 base->SCR = tmp8; in CMP_EnableInterrupts()
314 …uint8_t tmp8 = (uint8_t)(base->SCR & ~(CMP_SCR_CFR_MASK | CMP_SCR_CFF_MASK)); /* To avoid change t… in CMP_DisableInterrupts() local
318 tmp8 &= ~(uint8_t)CMP_SCR_IER_MASK; in CMP_DisableInterrupts()
322 tmp8 &= ~(uint8_t)CMP_SCR_IEF_MASK; in CMP_DisableInterrupts()
324 base->SCR = tmp8; in CMP_DisableInterrupts()
361 …uint8_t tmp8 = (uint8_t)(base->SCR & ~(CMP_SCR_CFR_MASK | CMP_SCR_CFF_MASK)); /* To avoid change t… in CMP_ClearStatusFlags() local
365 tmp8 |= CMP_SCR_CFR_MASK; in CMP_ClearStatusFlags()
369 tmp8 |= CMP_SCR_CFF_MASK; in CMP_ClearStatusFlags()
371 base->SCR = tmp8; in CMP_ClearStatusFlags()