]> git.gag.com Git - fw/sdcc/blob - device/lib/pic16/libio/adc/adcsetch.c
Large cummulative patch for pic16 port.
[fw/sdcc] / device / lib / pic16 / libio / adc / adcsetch.c
1
2 #include <pic18fregs.h>
3
4 #include <adc.h>
5
6
7 void adc_setchannel(unsigned char channel)
8 {
9         ADCON0 &= ~(0x7 << 3);
10         ADCON0 |= channel << 3;
11 }