From ef52b86c1cf07afd10e9853931526c56130876a3 Mon Sep 17 00:00:00 2001 From: tecodev Date: Thu, 1 May 2008 21:37:49 +0000 Subject: [PATCH] * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of supported devices and instructions to add new ones git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5151 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++ doc/sdccman.lyx | 58 +++++++++++++++++++++++++++------- support/scripts/inc2h-pic16.pl | 8 +++-- 3 files changed, 57 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index c177b4b5..f34c872d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-01 Raphael Neider + + * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of + supported devices and instructions to add new ones + 2008-05-01 Raphael Neider * device/include/pic16/adc.h, diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index 17698189..4a3b1547 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -24498,21 +24498,35 @@ The PIC16 port adds support for Microchip \end_layout \begin_layout Standard -18F: 2220, 2221, 2320, 2321, 2331, 2431, 2455, 24j10, 2525, 2550, 25j10, - 2620 +18F: 2220, 2221, 2320, 2321, 2331, 2420, 2423, 2431, 2455, 2480, 24j10 \end_layout \begin_layout Standard -18F: 4220, 4221, 4320, 4321, 4331, 4431, 4455, 44j10, 4520, 4525, 4550, - 45j10, 4620 +18F: 2520, 2523, 2525, 2550, 2580, 2585, 25j10, 2620, 2680, 2682, 2685 \end_layout \begin_layout Standard -18F: 6520, 6620, 6680, 6720 +18F: 4220, 4221, 4320, 4321, 4331, 4420, 4423, 4431, 4455, 4480, 44j10 \end_layout \begin_layout Standard -18F: 8520, 8620, 8680, 8720 +18F: 4520, 4523, 4525, 4550, 4580, 4585, 45j10, 4620, 4680, 4682, 4685 +\end_layout + +\begin_layout Standard +18F: 6520, 6585, 6620, 6680, 6720 +\end_layout + +\begin_layout Standard +18F: 8520, 8585, 8620, 8680, 8720 +\end_layout + +\begin_layout Standard +A list of supported devices is also available via ' +\family typewriter +sdcc -mpic16 -plist +\family default +'. \end_layout \begin_layout Subsection @@ -26260,6 +26274,15 @@ Add DEVICE to Note: No 18f prefix here! \end_layout +\begin_layout Enumerate +Set up the I/O library by doing +\series bold +one +\series default + of the following: +\end_layout + +\begin_deeper \begin_layout Enumerate Adjust \family typewriter @@ -26282,6 +26305,17 @@ usart . \end_layout +\begin_layout Enumerate +Adjust +\family typewriter +/path/to/sdcc/device/include/pic16/adc.h +\newline + +\family default +Add the new devices to the correct ADC style class. +\end_layout + +\end_deeper \begin_layout Enumerate Edit \family typewriter @@ -26304,16 +26338,16 @@ at the right place (keep it sorted). \begin_layout Enumerate Edit \family typewriter -/path/to/sdcc/src/pic16/devices.inc +/path/to/sdcc/device/include/pic16devices.txt +\newline + \family default -. - Copy and modify an existing entry and insert it at the correct place (keep - the file sorted). - The file is hardly documented, look at the entries for the 18f2221... +Copy and modify an existing entry or create a new one and insert it at the + correct place (keep the file sorted). \end_layout \begin_layout Enumerate -Recompile SDCC, including the pic16 libraries. +Recompile the pic16 libraries. \end_layout \begin_layout Subsection diff --git a/support/scripts/inc2h-pic16.pl b/support/scripts/inc2h-pic16.pl index f2eb459d..0e5e7156 100755 --- a/support/scripts/inc2h-pic16.pl +++ b/support/scripts/inc2h-pic16.pl @@ -17,8 +17,12 @@ use strict; # 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 # -- 2.30.2