X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fscripts%2Finc2h-pic16.pl;h=f2eb459daa401addb0839d055776b6e68f148943;hb=d68ded6371633fe092e01a10c55d47022d3b32b8;hp=fca9ccc2406cc73ac49f4e4d2bdf7e897b4d1abe;hpb=7575290515a0fd3b571a609d33d7e655a0a28186;p=fw%2Fsdcc diff --git a/support/scripts/inc2h-pic16.pl b/support/scripts/inc2h-pic16.pl index fca9ccc2..f2eb459d 100755 --- a/support/scripts/inc2h-pic16.pl +++ b/support/scripts/inc2h-pic16.pl @@ -2,6 +2,7 @@ use strict; +# # Parse MPASM include files to extract SDCC header/device library files # This script is (c) 2007 by Raphael Neider , # it is licensed under the terms of the GPL v2. @@ -19,12 +20,16 @@ use strict; # 5. adjust $SDCC/device/lib/pic16/libio/*.ignore if the device # does not support ADC, I2C, or USART # 6. edit $SDCC/device/include/pic16/pic18fregs.h -# 7. edit $SDCC/src/pic16/devices.inc +# 7. edit $SDCC/device/include/pic16/pic16devices.txt # # The file format of steps 6 and 7 is self explanatory, in most # if not all cases you can copy and paste another device's records # and adjust them to the newly added device. # +# Please try to add device families (with a common datasheet) rather +# than a single device and use the .h and .c files of the largest +# device for all (using #include "largest.c" and #include "largest.h"). +# my $SCRIPT = $0; $SCRIPT =~ s/.*\///g; # remove path prefix