This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[AVR] Add support for atmegaXXu2 new devices


Hello.

  The attached patch to add support for the new atmega8u2, atmega16u2 and
atmega32u2 devices in GCC.

2009-07-17  Anatoly Sokolov  <aesok@post.ru>

        * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
        atmega32u2 devices.
        * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)

Index: gcc/config/avr/t-avr
===================================================================
--- gcc/config/avr/t-avr        (revision 149692)
+++ gcc/config/avr/t-avr        (working copy)
@@ -94,6 +94,9 @@
        mmcu?avr31=mmcu?at43usb320 \
        mmcu?avr35=mmcu?at90usb82 \
        mmcu?avr35=mmcu?at90usb162 \
+       mmcu?avr35=mmcu?atmega8u2 \
+       mmcu?avr35=mmcu?atmega16u2 \
+       mmcu?avr35=mmcu?atmega32u2 \
        mmcu?avr35=mmcu?attiny167 \
        mmcu?avr35=mmcu?attiny327 \
        mmcu?avr4=mmcu?atmega48 \
Index: gcc/config/avr/avr-devices.c
===================================================================
--- gcc/config/avr/avr-devices.c        (revision 149692)
+++ gcc/config/avr/avr-devices.c        (working copy)
@@ -93,6 +93,9 @@
   { "avr35",                ARCH_AVR35, NULL,                       0, 0x0100, "usb162" },
   { "at90usb82",            ARCH_AVR35, "__AVR_AT90USB82__",        0, 0x0100, "usb82" },
   { "at90usb162",           ARCH_AVR35, "__AVR_AT90USB162__",       0, 0x0100, "usb162" },
+  { "atmega8u2",            ARCH_AVR35, "__AVR_ATmega8U2__",        0, 0x0100, "m8u2" },
+  { "atmega16u2",           ARCH_AVR35, "__AVR_ATmega16U2__",       0, 0x0100, "m16u2" },
+  { "atmega32u2",           ARCH_AVR35, "__AVR_ATmega32U2__",       0, 0x0100, "m32u2" },
   { "attiny167",            ARCH_AVR35, "__AVR_ATtiny167__",        0, 0x0100, "tn167" },
   { "attiny327",            ARCH_AVR35, "__AVR_ATtiny327__",        0, 0x0100, "tn327" },
     /* Enhanced, <= 8K.  */


Anatoly.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]