Searched refs:tmp16 (Results 1 – 2 of 2) sorted by relevance
104 uint16_t tmp16; in HSADC_Init() local112 tmp16 = (uint16_t)(base->CTRL1 & ~HSADC_CTRL1_SMODE_MASK); in HSADC_Init()113 tmp16 |= HSADC_CTRL1_SMODE(config->dualConverterScanMode); in HSADC_Init()114 base->CTRL1 = tmp16; in HSADC_Init()117 tmp16 = (uint16_t)(base->CTRL2 & ~HSADC_CTRL2_SIMULT_MASK); in HSADC_Init()120 tmp16 |= HSADC_CTRL2_SIMULT_MASK; in HSADC_Init()122 base->CTRL2 = tmp16; in HSADC_Init()125 tmp16 = (uint16_t)(base->CTRL3 & ~(HSADC_CTRL3_ADCRES_MASK | HSADC_CTRL3_DMASRC_MASK)); in HSADC_Init()126 … tmp16 |= (HSADC_CTRL3_ADCRES(config->resolution) | HSADC_CTRL3_DMASRC(config->DMATriggerSoruce)); in HSADC_Init()127 base->CTRL3 = tmp16; in HSADC_Init()[all …]
84 uint16_t tmp16; in ENC_Init() local92 …tmp16 = base->CTRL & (uint16_t)(~(ENC_CTRL_W1C_FLAGS | ENC_CTRL_HIP_MASK | ENC_CTRL_HNE_MASK | ENC… in ENC_Init()97 tmp16 |= ENC_CTRL_HIP_MASK; in ENC_Init()100 tmp16 |= ENC_CTRL_HNE_MASK; in ENC_Init()106 tmp16 |= ENC_CTRL_REV_MASK; in ENC_Init()110 tmp16 |= ENC_CTRL_PH1_MASK; in ENC_Init()115 tmp16 |= ENC_CTRL_XIP_MASK; in ENC_Init()118 tmp16 |= ENC_CTRL_XNE_MASK; in ENC_Init()124 tmp16 |= ENC_CTRL_WDE_MASK; in ENC_Init()127 base->CTRL = tmp16; in ENC_Init()[all …]