* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 31 Mar 2005 16:25:17 +0000 (16:25 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 31 Mar 2005 16:25:17 +0000 (16:25 +0000)
commit91070d31fe63aaa9412098be0aa469660b10822d
tree71e6a81221a5c681cb28f9a951126ebf13c84b68
parentd3440ed5ad7470b9062b63f41ec76e3a3f78fe7d
* src/pic16/device.c (Pics16[]): added devices 18F255018F4331,
18F4455,
* (pic16_assignConfigWordValue): disable testing of configuration
register value with config mask,
* src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
function with port->fun_prefix,
* (genFunction): when generating a naked interrupt function never
create an absolute segment placed in interrupt vector address, place
the actual interrupt function at IVA instead, when an interrupt
function is generated with unspecified interrupt then do not create
the absolute section,
* (genGenPointerGet, genGenPointerSet, genPackBits): replace all
code for generating a call to generic pointer get/put function with
a call to function pic16_callGenericPointer(),
* src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
the call to the generic pointer get/put functions with prefixing the
function name with port->fun_prefix,
* src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
* src/pic16/main.c (_process_pragma): prefix function with
port->fun_prefix,
* (_pic16_finaliseOptions): define macro __18Fxxxx macro when
calling assembler, old 18Fxxxx macro is deprecated,
* src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
PC_ASMDIR in while condition,
* (findInstruction): add PC_ASMDIR in while condition,
* (buildCallTree): prefix main with port->fun_prefix,
* (pic16_pCode2str): fixed bug that didn't emit the memory access
identifier for variable with banked access in instructions BTFSS,
BTFSC, BCF, BSF, BTG
* (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
* src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
* src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
perform optimization when enviroment variable NO_REG_OPT is set,
* (insideLRBlock): NEW, return 1 if register is inside an
INF_LOCALREGS block,
* (RemoveRegFromLRBlock): remove a register that is completely
eliminated by register optimization, but it is still left in local
register store/restore in/from stack block,
* (Remove2pcodes): after removing register, check to see if it
should be removed from local register store/restore in/from stack
block,
* src/pic16/ralloc.c (pic16_decodeOp): added decode for
DUMMY_READ_VOLATILE,

* device/include/pic16/adc.h: minor prototype modifications and
update,
* device/include/pic16/malloc.h: added GPL notice various
modifications,
* device/include/pic16/stdint.h: NEW, standard header for ints
* device/include/pic16/delay.h: NEW, header for delay functions,
delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
delay1mtcy,
* device/include/pic16/signal.h: NEW, header providing helper macros
for implementing signal handlers,
* device/include/pic16/stdio.h: added prototypes for functions,
printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
prototypes for stdin and stdout, added macro PUTCHAR to
automatically implement putchar function prototype,
* device/include/pic16/usart.h: modified and updated USART library,
* device/lib/pic16/libio/adc/,
* device/lib/pic16/libio/i2c: some modifications to improve library
performance,
* device/lib/pic16/libc/stdio/: modifications for the new printf*
family of functions,
* device/lib/pic16/libc/stdlib/: various modifications in the malloc
family of functions and other sources,
* device/lib/pic16/libio/usart/: NEW, c sources for the usart module
of the PIC18Fxx[28] devices,
* device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
* device/lib/pic16/libc/utils/: minor modifications in the .S sources,
* device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
_do_cinit function, because the previous failed when local variables
where not placed in the same memory bank,
* device/lib/pic16/libsdcc/char/: various modifications to improve
library performance,
* doc/sdccman.lyx: some reorganization of the PIC16 part, added many
information on the new functions of the c library and more...

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3711 4a8a32a2-be11-0410-ad9d-d568d2c75423
94 files changed:
ChangeLog
device/include/pic16/adc.h
device/include/pic16/delay.h [new file with mode: 0644]
device/include/pic16/malloc.h
device/include/pic16/p18fxxx.inc [new file with mode: 0644]
device/include/pic16/pic18fregs.h
device/include/pic16/stdint.h [new file with mode: 0644]
device/include/pic16/stdio.h
device/include/pic16/stdlib.h
device/lib/pic16/libc/Makefile
device/lib/pic16/libc/Makefile.rules
device/lib/pic16/libc/delay/Makefile [new file with mode: 0644]
device/lib/pic16/libc/delay/delay100ktcy.S [new file with mode: 0644]
device/lib/pic16/libc/delay/delay100tcy.S [new file with mode: 0644]
device/lib/pic16/libc/delay/delay10ktcy.S [new file with mode: 0644]
device/lib/pic16/libc/delay/delay10tcy.S [new file with mode: 0644]
device/lib/pic16/libc/delay/delay1ktcy.S [new file with mode: 0644]
device/lib/pic16/libc/delay/delay1mtcy.S [new file with mode: 0644]
device/lib/pic16/libc/stdio/Makefile
device/lib/pic16/libc/stdio/fprintf.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/printf.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/printf_small.c
device/lib/pic16/libc/stdio/printf_tiny.c
device/lib/pic16/libc/stdio/sprintf.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/streams.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/strmgpsim.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/strmmssp.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/strmputchar.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/strmusart.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/vfprintf.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/vprintf.c [new file with mode: 0644]
device/lib/pic16/libc/stdio/vsprintf.c [new file with mode: 0644]
device/lib/pic16/libc/stdlib/Makefile
device/lib/pic16/libc/stdlib/atoi.c
device/lib/pic16/libc/stdlib/calloc.c
device/lib/pic16/libc/stdlib/free.c
device/lib/pic16/libc/stdlib/g_ftoa.S [new file with mode: 0644]
device/lib/pic16/libc/stdlib/ltoa.c
device/lib/pic16/libc/stdlib/malloc.c
device/lib/pic16/libc/stdlib/memfree.c [new file with mode: 0644]
device/lib/pic16/libc/stdlib/memfreemax.c [new file with mode: 0644]
device/lib/pic16/libc/stdlib/memmisc.c [new file with mode: 0644]
device/lib/pic16/libc/stdlib/putchar.c
device/lib/pic16/libc/stdlib/realloc.c
device/lib/pic16/libc/utils/Makefile
device/lib/pic16/libc/utils/cnvfrac.S
device/lib/pic16/libc/utils/cnvint.S
device/lib/pic16/libio/Makefile
device/lib/pic16/libio/Makefile.rules
device/lib/pic16/libio/adc/Makefile
device/lib/pic16/libio/adc/adcbusy.c
device/lib/pic16/libio/adc/adcclose.c
device/lib/pic16/libio/adc/adcconv.c
device/lib/pic16/libio/adc/adcopen.c
device/lib/pic16/libio/adc/adcread.c
device/lib/pic16/libio/adc/adcsetch.c
device/lib/pic16/libio/i2c/i2cdrdy.c
device/lib/pic16/libio/usart/Makefile [new file with mode: 0644]
device/lib/pic16/libio/usart/ubaud.c [new file with mode: 0644]
device/lib/pic16/libio/usart/ubusy.c [new file with mode: 0644]
device/lib/pic16/libio/usart/uclose.c [new file with mode: 0644]
device/lib/pic16/libio/usart/udrdy.c [new file with mode: 0644]
device/lib/pic16/libio/usart/ugetc.c [new file with mode: 0644]
device/lib/pic16/libio/usart/ugets.c [new file with mode: 0644]
device/lib/pic16/libio/usart/uopen.c [new file with mode: 0644]
device/lib/pic16/libio/usart/uputc.c [new file with mode: 0644]
device/lib/pic16/libio/usart/uputs.c [new file with mode: 0644]
device/lib/pic16/libio/usart/usartd.c [new file with mode: 0644]
device/lib/pic16/libsdcc/Makefile.rules
device/lib/pic16/libsdcc/char/Makefile
device/lib/pic16/libsdcc/char/divschar.c
device/lib/pic16/libsdcc/char/divuchar.c
device/lib/pic16/libsdcc/char/modschar.c
device/lib/pic16/libsdcc/char/moduchar.c
device/lib/pic16/libsdcc/float/Makefile
device/lib/pic16/libsdcc/float/fs2ulong.c
device/lib/pic16/startup/Makefile
device/lib/pic16/startup/crt0.c
device/lib/pic16/startup/crt0i.c
device/lib/pic16/startup/crt0iz.c
src/pic16/NOTES
src/pic16/device.c
src/pic16/gen.c
src/pic16/gen.h
src/pic16/genutils.c
src/pic16/genutils.h
src/pic16/glue.c
src/pic16/main.c
src/pic16/pcode.c
src/pic16/pcode.h
src/pic16/pcodepeep.c
src/pic16/pcoderegs.c
src/pic16/ralloc.c
src/pic16/ralloc.h