* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
[fw/sdcc] / device / include / pic16 / adc.h
index b6815732b5a5afe8215b82244879baed8a5ef645..ce1e9f8d799424bab0d5d93a6600a44cbd208178 100644 (file)
 #define ADC_CFG_1A_2R  0x0f
 
 
+/* initialize AD module */
 void adc_open(unsigned char channel, unsigned char fosc, unsigned char pcfg, unsigned char config);
 
+/* shutdown AD module */
 void adc_close(void);
 
+/* begin a conversion */
 void adc_conv(void);
 
-char adc_busy(void);
+/* return 1 if AD is performing a conversion, 0 if done */
+char adc_busy(void) _naked;
 
-int adc_read(void);
+/* get value of convertion */
+int adc_read(void) _naked;
 
-void adc_setchannel(unsigned char channel);
+/* setup conversion channel */
+void adc_setchannel(unsigned char channel) _naked;
 
 #endif