gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:out_w from mtkernel_3/device/adc/sysdepend/tx03_m367/adc_m367.c (0.00 seconds)
mtkernel_3
device/adc/sysdepend/tx03_m367/adc_m367.c - 4.6KB - 150 lines
63:                 /* channel fixed single convert */
64:                 out_w( ba[unit] + ADxMOD3, ADMD_CHFIX_SINGLE);        // Ch.Fixed Single mode
65:                 out_w( ba[unit] + ADxMOD2, ch);                       // MOD2.ADCH = Channel
66:                 
68: /* channel scan single convert */ 69: out_w( ba[unit] + ADxMOD3, ADMD_CHSCAN_SINGLE); // Ch.Fixed scan mode 70: out_w( ba[unit] + ADxMOD4, ch | ((size-1)<<4)); // MOD4.SCANSTA = ch, .SCANAREA = size-1 71:
76: tk_can_wup(TSK_SELF); 77: out_w( ba[unit] + ADxMOD0, ADxMOD0_ADS); // MOD0.ADS = 1 Start Covert 78:
103: if(unit == DEV_ADC_UNIT0) { 104: out_w(ba[unit] + ADxCLK, DEVCNF_ADCA_CLK); // Clock setting 105: EnableInt(INTNO_INTADA, DEVCNF_ADCA_INTPRI); 106: } else { 107: out_w(ba[unit] + ADxCLK, DEVCNF_ADCB_CLK); // Clock setting 108: EnableInt(INTNO_INTADB, DEVCNF_ADCB_INTPRI); 109: } 110: out_w(ba[unit] + ADxMOD1, ADxMOD1_DACON); // MOD1.DACON = 1 111: break;
114: DisableInt((unit?INTNO_INTADB:INTNO_INTADA)); 115: out_w(ba[unit] + ADxMOD1, 0); // MOD1.DACON = 0 116: break;