blob: ae40db6035ac1a3e7b30b560d92f07655eb8dcad [file] [log] [blame]
#include "lynq-adc.h"
#include "mbtk_type.h"
#include "mbtk_adc.h"
#include "mbtk_log.h"
int qser_adc_show(ADC_CHANNEL_E qadc)
{
UNUSED(qadc);
mbtk_adc_enum adc = MBTK_ADC0;
switch(qadc) {
case ADC0:
adc = MBTK_ADC0;
break;
case ADC1:
adc = MBTK_ADC1;
break;
default:
LOGE("Unsupport adc : %d", qadc);
return -1;
}
return mbtk_adc_get(adc);
}