*
* 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;
}
+