[adc] adc integrated to main code