# 2. mv picDEVICE.h $SDCC/device/include/pic16
# 3. mv picDEVICE.c $SDCC/device/lib/pic16/libdev
# 4. add DEVICE to $SDCC/device/lib/pic16/pics.all (and .build)
-# 5. adjust $SDCC/device/lib/pic16/libio/*.ignore if the device
-# does not support ADC, I2C, or USART
+# 5. either
+# (a) adjust $SDCC/device/lib/pic16/libio/*.ignore
+# if the device does not support ADC, I2C, or USART
+# OR
+# (b) adjust $SDCC/device/include/pic16/adc.h
+# adding the new device to the correct ADC style class
# 6. edit $SDCC/device/include/pic16/pic18fregs.h
# 7. edit $SDCC/device/include/pic16/pic16devices.txt
#
$proc = uc($proc);
print HEADER <<"HEREDOC"
-/*
+/*
* $header - device specific declarations
*
* This file is part of the GNU PIC library for SDCC,
print LIBRARY <<HEREDOC
HEREDOC
-;
+;
close HEADER;
close LIBRARY;
}
chomp;
s/\s+/ /g;
next if (/^\s*$/);
-
+
if (/IFNDEF _*(18.*[0-9]+)/i) {
$processor = lc($1);
#LOG "Found processor: $processor.\n";