Use 'ao-dbg' instead of 's51' to communicate with TeleMetrum
[fw/sdcc] / device / lib / pic16 / libio / adc / adcclose.c
index 3b103b3751230e96fb83676c68465a95e355ef0f..9153fe0b0aff9b04721a73b18d552159ccc583cf 100644 (file)
@@ -4,10 +4,6 @@
  *
  * written by Vangelis Rokas, 2004 <vrokas AT otenet.gr>
  *
- * Devices implemented:
- *     PIC18F[24][45][28]
- *
- *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public License
  * as published by the Free Software Foundation; either version 2
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
-/*
-** $Id$
-*/
-
 #include <pic18fregs.h>
 #include <adc.h>
 
 
 void adc_close(void)
 {
+#if defined(__SDCC_ADC_STYLE65J50)
+  WDTCONbits.ADSHR = 0; /* access ADCON0/1 */
+#endif
   ADCON0bits.ADON = 0;
   PIE1bits.ADIE = 0;
 }
+