gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:ADC_CR (0.00 seconds)
mtkernel_3
device/adc/sysdepend/stm32l4/adc_stm32l4.c - 8.0KB - 257 lines
106:         tk_can_wup(TSK_SELF);
107:         out_w(ADC_CR(unit), ADC_CR_ADSTART | ADC_CR_ADVREGEN); // Start Covert
108:         for( rtn = 0; rtn < size; rtn++) {
143: ll_devcb[unit].wait_tskid = tk_get_tid(); 144: out_w(ADC_CR(unit), ADC_CR_ADEN | ADC_CR_ADVREGEN); // Set ADEN 145:
160: /* Disable ADC */ 161: out_w(ADC_CR(unit), ADC_CR_ADDIS); // Set ADDIS 162: while(in_w(ADC_ISR(unit)) & ADC_ISR_ADRDY); // Wait until ADEN is clear
233: /* ADC Power-On */ 234: out_w(ADC_CR(unit), 0); // DEEPPWD = 0 235: out_w(ADC_CR(unit), ADC_CR_ADVREGEN); // ADVREGEN = 1 236:
245: /* ADC calibration */ 246: out_w(ADC_CR(unit), ADC_CR_ADVREGEN | ADC_CR_ADCAL); // ADCAL = 1 247: while( in_w(ADC_CR(unit)) & ADC_CR_ADCAL); // Wait until ADCAL is clear 248: