nxphlite-v3:ADC 12 use bit

This commit is contained in:
David Sidrane 2017-09-27 18:24:31 -10:00
parent 3e863dff5d
commit e11b08aa68
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ ADC::init()
irqstate_t flags = px4_enter_critical_section();
_REG(KINETIS_SIM_SCGC3) |= SIM_SCGC3_ADC1;
rCFG1(1) = ADC_CFG1_ADICLK_BUSCLK | ADC_CFG1_MODE_1616BIT | ADC_CFG1_ADIV_DIV8;
rCFG1(1) = ADC_CFG1_ADICLK_BUSCLK | ADC_CFG1_MODE_1213BIT | ADC_CFG1_ADIV_DIV8;
rCFG2(1) = 0;
rSC2(1) = ADC_SC2_REFSEL_DEFAULT;