blob: d82a5b947a76f23f4080f8952084eca7b07bebe6 [file] [log] [blame]
#include <stdio.h>
#include "ql_adc.h"
int main(int argc, char *argv[])
{
if(argc != 2) {
printf("ql_adc_test <0/1/2>\n");
return -1;
}
int adc = atoi(argv[1]);
if(adc != 0 && adc != 1 && adc != 2) {
printf("ql_adc_test <0/1/2>\n");
return -1;
}
int result = ql_adc_show((ADC_CHANNEL_E)(adc + 1));
printf("ADC : %d\n", result);
return 0;
}