blob: 2d1b689638030d9db8242548fcb76137ee3ea103 [file] [log] [blame]
#include <stdio.h>
#include "mbtk_adc.h"
int main(int argc, char *argv[])
{
int adc = mbtk_adc_get(MBTK_ADC0);
if(adc > 0) {
printf("ADC0 = %d\n", adc);
} else {
printf("Get ADC0 fail.\n");
}
adc = mbtk_adc_get(MBTK_ADC1);
if(adc > 0) {
printf("ADC1 = %d\n", adc);
} else {
printf("Get ADC1 fail.\n");
}
return 0;
}