Fixed up the resource initialization of ADC channels. Added adc.c. Fixed up a few return values. More fixing up.