for (uint32_t i = 0; i < sample_number; i++) {
uint32_t irq_sts = osal_irq_lock();
uint32_t sample_result = (uint32_t)uapi_adc_manual_sample(ADC_CHANNEL_NONE);
- osal_printk("sample_result = %d.\r\n", sample_result);
+ // osal_printk("sample_result = %d.\r\n", sample_result);
if (sample_result == 0) { sample_zero_count++; }
stick += sample_result;
osal_irq_restore(irq_sts);
uapi_adc_init(ADC_CLOCK_500KHZ);
uint64_t time1, time2;
uint32_t param_index = 0;
- osal_printk("channel: %d\r\n", channel);
+ // osal_printk("channel: %d\r\n", channel);
time1 = uapi_tcxo_get_us();
if (!adc_get_voltage_by_channel(voltage, channel)) {
osal_printk("adc get sample result failed.\r\n");
return SUITE_TEST_FAILED;
}
time2 = uapi_tcxo_get_us();
- osal_printk("tick: %d, Sample time: %d. \r\n", adc_get_sample_stick(),
- (uint64_t)(time2 - time1));
- osal_printk("voltage: %.4f.\r\n", voltage);
+ // osal_printk("tick: %d, Sample time: %d. \r\n", adc_get_sample_stick(),
+ // (uint64_t)(time2 - time1));
+ // osal_printk("voltage: %.4f.\r\n", voltage);
return true;
}
return false;
}
progress1callback_ = new ProgressCallback(progress,batteryLabel);
- progress1animator_ = new Animator(progress1callback_,progress,100,true);
+ progress1animator_ = new Animator(progress1callback_,progress,5000,true);
progress1animator_->Start();
clockAnimator->Start();
SetCoverable(true);