Searched refs:tempCtl (Results 1 – 1 of 1) sorted by relevance
45 uint32_t tempCtl; in ADCSetSampleDuration() local48 tempCtl = HWREG(ADC_BASE + ADC_O_CTL0); in ADCSetSampleDuration()51 tempCtl &= ~(ADC_CTL0_SCLKDIV_M); in ADCSetSampleDuration()54 tempCtl |= (clkDiv & ADC_CTL0_SCLKDIV_M); in ADCSetSampleDuration()57 HWREG(ADC_BASE + ADC_O_CTL0) = tempCtl; in ADCSetSampleDuration()70 uint32_t tempCtl; in ADCSetResolution() local73 tempCtl = HWREG(ADC_BASE + ADC_O_CTL2); in ADCSetResolution()76 tempCtl &= ~(ADC_CTL2_RES_M); in ADCSetResolution()79 tempCtl |= (resolution & ADC_CTL2_RES_M); in ADCSetResolution()82 HWREG(ADC_BASE + ADC_O_CTL2) = tempCtl; in ADCSetResolution()[all …]