blob: 6eb83f665fc47a352c05d789fadcfc674c0b9c86 [file] [log] [blame]
#include <stdio.h>
#include "ql/ql_adc.h"
int main(int argc, char *argv[])
{
int adc = ql_adc_show(ADC0);
if(adc > 0) {
printf("ADC0 = %d\n", adc);
} else {
printf("Get ADC0 fail.\n");
}
adc = ql_adc_show(ADC1);
if(adc > 0) {
printf("ADC1 = %d\n", adc);
} else {
printf("Get ADC1 fail.\n");
}
return 0;
}