Home
last modified time | relevance | path

Searched refs:tmpReg (Results 1 – 9 of 9) sorted by relevance

/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/adc_etc/
Dfsl_adc_etc.c235 uint32_t tmpReg = 0U; in ADC_ETC_SetTriggerChainConfig() local
255 tmpReg = base->TRIG[triggerGroup].TRIGn_CHAIN_1_0; in ADC_ETC_SetTriggerChainConfig()
258tmpReg &= ~(ADC_ETC_TRIGn_CHAIN_1_0_CSEL0_MASK | ADC_ETC_TRIGn_CHAIN_1_0_HWTS0_MASK | in ADC_ETC_SetTriggerChainConfig()
260 tmpReg |= tmp32; in ADC_ETC_SetTriggerChainConfig()
264tmpReg &= ~(ADC_ETC_TRIGn_CHAIN_1_0_CSEL1_MASK | ADC_ETC_TRIGn_CHAIN_1_0_HWTS1_MASK | in ADC_ETC_SetTriggerChainConfig()
266 tmpReg |= (tmp32 << ADC_ETC_TRIGn_CHAIN_1_0_CSEL1_SHIFT); in ADC_ETC_SetTriggerChainConfig()
268 base->TRIG[triggerGroup].TRIGn_CHAIN_1_0 = tmpReg; in ADC_ETC_SetTriggerChainConfig()
271 tmpReg = base->TRIG[triggerGroup].TRIGn_CHAIN_3_2; in ADC_ETC_SetTriggerChainConfig()
274tmpReg &= ~(ADC_ETC_TRIGn_CHAIN_3_2_CSEL2_MASK | ADC_ETC_TRIGn_CHAIN_3_2_HWTS2_MASK | in ADC_ETC_SetTriggerChainConfig()
276 tmpReg |= tmp32; in ADC_ETC_SetTriggerChainConfig()
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/cmp_1/
Dfsl_cmp.c38 uint32_t tmpReg = 0U; in CMP_Init() local
50tmpReg = (PMC->COMP & ~(PMC_COMP_LOWPOWER_MASK | PMC_COMP_HYST_MASK | PMC_COMP_FILTERCGF_CLKDIV_MA… in CMP_Init()
55 tmpReg |= PMC_COMP_LOWPOWER_MASK; in CMP_Init()
59 tmpReg &= ~PMC_COMP_LOWPOWER_MASK; in CMP_Init()
64 tmpReg |= PMC_COMP_HYST_MASK; in CMP_Init()
68 tmpReg &= ~PMC_COMP_HYST_MASK; in CMP_Init()
71 tmpReg |= (PMC_COMP_FILTERCGF_CLKDIV(config->filterClockDivider) | in CMP_Init()
74 PMC->COMP = tmpReg; in CMP_Init()
123 uint32_t tmpReg = PMC->COMP & ~(PMC_COMP_VREF_MASK | PMC_COMP_VREFINPUT_MASK); in CMP_SetVREF() local
125 tmpReg |= PMC_COMP_VREFINPUT(config->vrefSource) | PMC_COMP_VREF(config->vrefValue); in CMP_SetVREF()
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/i2c/
Dfsl_i2c_edma.c92 uint8_t tmpReg; in I2C_MasterTransferCallbackEDMA() local
115tmpReg = i2cPrivateHandle->base->D; in I2C_MasterTransferCallbackEDMA()
117 *(i2cPrivateHandle->handle->transfer.data + tmpdataSize - 1U) = tmpReg; in I2C_MasterTransferCallbackEDMA()
146tmpReg = i2cPrivateHandle->base->D; in I2C_MasterTransferCallbackEDMA()
148 *(i2cPrivateHandle->handle->transfer.data + tmpdataSize - 1U) = tmpReg; in I2C_MasterTransferCallbackEDMA()
448 uint8_t tmpReg; in I2C_MasterTransferEDMA() local
504 tmpReg = base->C1; in I2C_MasterTransferEDMA()
507 tmpReg &= ~(uint8_t)I2C_C1_TX_MASK; in I2C_MasterTransferEDMA()
510 tmpReg |= I2C_C1_TXAK_MASK; in I2C_MasterTransferEDMA()
512 base->C1 = tmpReg; in I2C_MasterTransferEDMA()
[all …]
Dfsl_i2c_dma.c440 uint8_t tmpReg; in I2C_MasterTransferDMA() local
497 tmpReg = base->C1; in I2C_MasterTransferDMA()
500 tmpReg &= ~(uint8_t)I2C_C1_TX_MASK; in I2C_MasterTransferDMA()
503 tmpReg |= I2C_C1_TXAK_MASK; in I2C_MasterTransferDMA()
505 base->C1 = tmpReg; in I2C_MasterTransferDMA()
Dfsl_i2c.c1714 uint8_t tmpReg; in I2C_SlaveInit() local
1754 tmpReg = base->C1; in I2C_SlaveInit()
1755 tmpReg &= ~(uint8_t)I2C_C1_WUEN_MASK; in I2C_SlaveInit()
1756 …base->C1 = tmpReg | I2C_C1_WUEN(slaveConfig->enableWakeUp) | I2C_C1_IICEN(slaveConfig->enableSlave… in I2C_SlaveInit()
1759 tmpReg = base->C2; in I2C_SlaveInit()
1760 tmpReg &= ~(uint8_t)(I2C_C2_SBRC_MASK | I2C_C2_GCAEN_MASK); in I2C_SlaveInit()
1761tmpReg |= I2C_C2_SBRC(slaveConfig->enableBaudRateCtl) | I2C_C2_GCAEN(slaveConfig->enableGeneralCal… in I2C_SlaveInit()
1762 base->C2 = tmpReg; in I2C_SlaveInit()
1766 tmpReg = (uint8_t)(base->S2 & (~I2C_S2_DFEN_MASK)); in I2C_SlaveInit()
1767 base->S2 = tmpReg | I2C_S2_DFEN(slaveConfig->enableDoubleBuffering); in I2C_SlaveInit()
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/lpc_dma/
Dfsl_dma.c189 …uint32_t tmpReg = (DMA_CHANNEL_CFG_HWTRIGEN_MASK | DMA_CHANNEL_CFG_TRIGPOL_MASK | DMA_CHANNEL_CFG_… in DMA_ConfigureChannelTrigger() local
192 tmpReg = base->CHANNEL[channel].CFG & (~tmpReg); in DMA_ConfigureChannelTrigger()
193 tmpReg |= (uint32_t)(trigger->type) | (uint32_t)(trigger->burst) | (uint32_t)(trigger->wrap); in DMA_ConfigureChannelTrigger()
194 base->CHANNEL[channel].CFG = tmpReg; in DMA_ConfigureChannelTrigger()
626 uint32_t tmpReg = DMA_CHANNEL_CFG_PERIPHREQEN_MASK; in DMA_SetChannelConfig() local
630tmpReg |= DMA_CHANNEL_CFG_HWTRIGEN_MASK | DMA_CHANNEL_CFG_TRIGPOL_MASK | DMA_CHANNEL_CFG_TRIGTYPE_… in DMA_SetChannelConfig()
635 tmpReg = base->CHANNEL[channel].CFG & (~tmpReg); in DMA_SetChannelConfig()
639tmpReg |= (uint32_t)(trigger->type) | (uint32_t)(trigger->burst) | (uint32_t)(trigger->wrap); in DMA_SetChannelConfig()
642 tmpReg |= DMA_CHANNEL_CFG_PERIPHREQEN(isPeriph); in DMA_SetChannelConfig()
644 base->CHANNEL[channel].CFG = tmpReg; in DMA_SetChannelConfig()
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/lpi2c/
Dfsl_lpi2c.c633 uint32_t tmpReg = 0U; in LPI2C_MasterSetBaudRate() local
725 tmpReg = LPI2C_MCCR0_CLKHI((uint32_t)tmpHigh) | in LPI2C_MasterSetBaudRate()
728 base->MCCR0 = tmpReg; in LPI2C_MasterSetBaudRate()
1799 uint32_t tmpReg; in LPI2C_SlaveInit() local
1830 tmpReg = LPI2C_SCFGR2_FILTSDA( in LPI2C_SlaveInit()
1839 tmpReg |= LPI2C_SCFGR2_FILTSCL(tmpCycle - 3U); in LPI2C_SlaveInit()
1843 tmpReg |= LPI2C_SCFGR2_DATAVD( in LPI2C_SlaveInit()
1851 tmpReg | LPI2C_SCFGR2_CLKHOLD( in LPI2C_SlaveInit()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/video/camera/device/ov7725/
Dfsl_ov7725.c358 uint8_t tmpReg; in OV7725_Init() local
504tmpReg = (((uint8_t)vstart & 1U) << 6U) | (((uint8_t)hstart & 3U) << 4U) | (((uint8_t)height & 1U)… in OV7725_Init()
507 OV7725_CHECK_RET(OV7725_WriteReg(handle, OV7725_HREF_REG, tmpReg)); in OV7725_Init()
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/edma/
Dfsl_edma.c301 volatile uint8_t *tmpReg = &base->DCHPRI3; in EDMA_SetChannelPreemptionConfig() local
303 ((volatile uint8_t *)tmpReg)[DMA_DCHPRI_INDEX(channel)] = in EDMA_SetChannelPreemptionConfig()