]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/avr/avr-devices.c
Update copyright years.
[thirdparty/gcc.git] / gcc / config / avr / avr-devices.c
1 /* Copyright (C) 2009-2015 Free Software Foundation, Inc.
2 Contributed by Anatoly Sokolov (aesok@post.ru)
3
4 This file is part of GCC.
5
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
10
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
19
20 #ifndef IN_GEN_AVR_MMCU_TEXI
21 #include "config.h"
22 #include "system.h"
23 #include "coretypes.h"
24 #include "tm.h"
25 #endif /* IN_GEN_AVR_MMCU_TEXI */
26
27 /* List of all known AVR MCU architectures.
28 Order as of enum avr_arch from avr.h. */
29
30 const avr_arch_t
31 avr_arch_types[] =
32 {
33 /* unknown device specified */
34 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, NULL, "avr2" },
35 /*
36 A M J LM E E E X R T d S S O A
37 S U M PO L L I M A I a t F ff r
38 M L P MV P P J E M N t a R s c
39 XW M M M G P Y a r e h
40 X P A D t t ID */
41 { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "1", "avr1" },
42 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "2", "avr2" },
43 { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0x0060, 32, "25", "avr25" },
44 { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "3", "avr3" },
45 { 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0x0060, 32, "31", "avr31" },
46 { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0x0060, 32, "35", "avr35" },
47 { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0x0060, 32, "4", "avr4" },
48 { 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0x0060, 32, "5", "avr5" },
49 { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0x0060, 32, "51", "avr51" },
50 { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0x0060, 32, "6", "avr6" },
51
52 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0x0040, 0, "100", "avrtiny" },
53 { 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0x2000, 0, "102", "avrxmega2" },
54 { 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0x2000, 0, "104", "avrxmega4" },
55 { 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0x2000, 0, "105", "avrxmega5" },
56 { 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0x2000, 0, "106", "avrxmega6" },
57 { 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0x2000, 0, "107", "avrxmega7" }
58 };
59
60 const avr_arch_info_t
61 avr_texinfo[] =
62 {
63 { ARCH_AVR1,
64 "This ISA is implemented by the minimal AVR core and supported "
65 "for assembler only." },
66 { ARCH_AVR2,
67 "``Classic'' devices with up to 8@tie{}KiB of program memory." },
68 { ARCH_AVR25,
69 "``Classic'' devices with up to 8@tie{}KiB of program memory and with "
70 "the @code{MOVW} instruction." },
71 { ARCH_AVR3,
72 "``Classic'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
73 " program memory." },
74 { ARCH_AVR31,
75 "``Classic'' devices with 128@tie{}KiB of program memory." },
76 { ARCH_AVR35,
77 "``Classic'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
78 "program memory and with the @code{MOVW} instruction." },
79 { ARCH_AVR4,
80 "``Enhanced'' devices with up to 8@tie{}KiB of program memory." },
81 { ARCH_AVR5,
82 "``Enhanced'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
83 "program memory." },
84 { ARCH_AVR51,
85 "``Enhanced'' devices with 128@tie{}KiB of program memory." },
86 { ARCH_AVR6,
87 "``Enhanced'' devices with 3-byte PC, i.e.@: with more than 128@tie{}KiB "
88 "of program memory." },
89 { ARCH_AVRTINY,
90 "``TINY'' Tiny core devices with 512@tie{}B up to 4@tie{}KiB of "
91 "program memory." },
92 { ARCH_AVRXMEGA2,
93 "``XMEGA'' devices with more than 8@tie{}KiB and up to 64@tie{}KiB "
94 "of program memory." },
95 { ARCH_AVRXMEGA4,
96 "``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB "
97 "of program memory." },
98 { ARCH_AVRXMEGA5,
99 "``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB "
100 "of program memory and more than 64@tie{}KiB of RAM." },
101 { ARCH_AVRXMEGA6,
102 "``XMEGA'' devices with more than 128@tie{}KiB of program memory." },
103 { ARCH_AVRXMEGA7,
104 "``XMEGA'' devices with more than 128@tie{}KiB of program memory "
105 "and more than 64@tie{}KiB of RAM." }
106 };
107
108 const avr_mcu_t
109 avr_mcu_types[] =
110 {
111 #define AVR_MCU(NAME, ARCH, DEV_ATTRIBUTE, MACRO, DATA_SEC, TEXT_SEC, N_FLASH, LIBNAME)\
112 { NAME, ARCH, DEV_ATTRIBUTE, MACRO, DATA_SEC, TEXT_SEC, N_FLASH, LIBNAME },
113 #include "avr-mcus.def"
114 #undef AVR_MCU
115 /* End of list. */
116 { NULL, ARCH_UNKNOWN, AVR_ISA_NONE, NULL, 0, 0, 0, NULL }
117 };
118