Lines Matching refs:base
49 unsigned long base; member
67 static inline void start_sampling(unsigned long base, int ch) in start_sampling() argument
69 MAP_ADCChannelEnable(base, ch); in start_sampling()
71 while (!MAP_ADCFIFOLvlGet(base, ch)) { in start_sampling()
73 MAP_ADCFIFORead(base, ch); in start_sampling()
75 MAP_ADCIntClear(base, ch, ISR_MASK); in start_sampling()
76 MAP_ADCIntEnable(base, ch, ISR_MASK); in start_sampling()
90 start_sampling(config->base, s_channel[i]); in adc_context_start_sampling()
120 MAP_ADCIntDisable(config->base, ch, ISR_MASK); in adc_cc32xx_init()
121 MAP_ADCChannelDisable(config->base, ch); in adc_cc32xx_init()
122 MAP_ADCDMADisable(config->base, ch); in adc_cc32xx_init()
123 MAP_ADCIntClear(config->base, ch, ISR_MASK); in adc_cc32xx_init()
125 MAP_ADCEnable(config->base); in adc_cc32xx_init()
165 MAP_ADCChannelDisable(config->base, s_channel[ch]); in adc_cc32xx_channel_setup()
166 MAP_ADCIntDisable(config->base, s_channel[ch], ISR_MASK); in adc_cc32xx_channel_setup()
235 unsigned long mask = MAP_ADCIntStatus(config->base, chan); in adc_cc32xx_isr()
239 MAP_ADCIntClear(config->base, chan, mask); in adc_cc32xx_isr()
245 while (MAP_ADCFIFOLvlGet(config->base, chan)) { in adc_cc32xx_isr()
246 rv += (MAP_ADCFIFORead(config->base, chan) >> 2) & 0x0FFF; in adc_cc32xx_isr()
253 MAP_ADCIntDisable(config->base, chan, ISR_MASK); in adc_cc32xx_isr()
254 MAP_ADCChannelDisable(config->base, chan); in adc_cc32xx_isr()
305 .base = DT_INST_REG_ADDR(index), \