NOTE: The mega48/88/168 headers are already in cvs. We still need headers for the other 3 devices. 2004-04-02 Theodore A. Roth * configure.in: * crt1/Makefile.am: * include/avr/io.h: Add support infrastructure for mega48, mega88, mega168, tiny13, tiny2313 and at90can128. Index: configure.in =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/configure.in,v retrieving revision 1.100 diff -u -p -p -r1.100 configure.in --- configure.in 22 Mar 2004 18:49:59 -0000 1.100 +++ configure.in 2 Apr 2004 23:55:01 -0000 @@ -317,12 +317,13 @@ else ;; avr4) avrlib_cflags=${avrlib_opt_space} avrlib_asflags='-mmcu=avr4' - AVR_CRT_MEGA='crtm8.o crtm8515.o crtm8535.o # crtm83.o crtm85.o' + AVR_CRT_MEGA='crtm48.o crtm88.o crtm8.o crtm8515.o crtm8535.o # crtm83.o crtm85.o' + AVR_CRT_TINY='crttn13.o crttn2313.o' ;; avr5) avrlib_cflags=${avrlib_opt_speed} avrlib_asflags='-mmcu=avr5' - AVR_CRT_MEGA='crtm161.o crtm162.o crtm163.o crtm169.o crtm323.o crtm128.o crtm16.o crtm32.o crtm64.o' - AVR_CRT_OTHER='crtat94k.o' + AVR_CRT_MEGA='crtm161.o crtm162.o crtm163.o crtm168.o crtm169.o crtm323.o crtm128.o crtm16.o crtm32.o crtm64.o' + AVR_CRT_OTHER='crtat94k.o crtcan128.o' ;; *) AC_MSG_ERROR(unexpected value '${with_multisubdir}' for with_multisubdir) ;; Index: crt1/Makefile.am =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/crt1/Makefile.am,v retrieving revision 1.2 diff -u -p -p -r1.2 Makefile.am --- crt1/Makefile.am 27 Feb 2003 21:40:18 -0000 1.2 +++ crt1/Makefile.am 2 Apr 2004 23:55:01 -0000 @@ -1,4 +1,7 @@ -# Copyright (c) 2002, Reinhard Jessich +# +# $Id$ +# +# Copyright (c) 2002, 2004 Reinhard Jessich # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -54,6 +57,9 @@ $(AVR_CRT_TINY): crttn%.o: gcrt1.S # $(AVR_CRT_OTHER) - devices that don't follow a common naming convention. crtat94k.o: gcrt1.S $(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at94k -c $< -o $@ + +crtcan128.o: gcrt1.S + $(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at90can128 -c $< -o $@ crt43320.o: gcrt1.S $(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at43usb320 -c $< -o $@ Index: include/avr/io.h =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/include/avr/io.h,v retrieving revision 1.11 diff -u -p -p -r1.11 io.h --- include/avr/io.h 20 Oct 2003 18:45:28 -0000 1.11 +++ include/avr/io.h 2 Apr 2004 23:55:01 -0000 @@ -161,6 +161,8 @@ # include #elif defined (__AVR_ATmega128__) # include +#elif defined (__AVR_AT90CAN128__) +# include #elif defined (__AVR_ATmega64__) # include #elif defined (__AVR_ATmega103__) @@ -177,10 +179,16 @@ # include #elif defined (__AVR_ATmega163__) # include +#elif defined (__AVR_ATmega168__) +# include #elif defined (__AVR_ATmega169__) # include #elif defined (__AVR_ATmega8__) # include +#elif defined (__AVR_ATmega48__) +# include +#elif defined (__AVR_ATmega88__) +# include #elif defined (__AVR_ATmega8515__) # include #elif defined (__AVR_ATmega8535__) @@ -209,6 +217,10 @@ # include #elif defined (__AVR_AT90S2313__) # include +#elif defined (__AVR_ATtiny2313__) +# include +#elif defined (__AVR_ATtiny13__) +# include /* avr1: the following only supported for assembler programs */ #elif defined (__AVR_ATtiny28__) # include