]>
Commit | Line | Data |
---|---|---|
71e45bc2 | 1 | /* Copyright (C) 2009, 2010, 2011, 2012 |
795cff42 | 2 | Free Software Foundation, Inc. |
3 | Contributed by Anatoly Sokolov (aesok@post.ru) | |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 3, or (at your option) | |
10 | any later version. | |
11 | ||
12 | GCC is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GCC; see the file COPYING3. If not see | |
19 | <http://www.gnu.org/licenses/>. */ | |
20 | ||
1dbb006a | 21 | #ifndef IN_GEN_AVR_MMCU_TEXI |
795cff42 | 22 | #include "config.h" |
23 | #include "system.h" | |
24 | #include "coretypes.h" | |
25 | #include "tm.h" | |
1dbb006a | 26 | #endif /* IN_GEN_AVR_MMCU_TEXI */ |
795cff42 | 27 | |
644ac9c5 | 28 | /* List of all known AVR MCU architectures. |
29 | Order as of enum avr_arch from avr.h. */ | |
795cff42 | 30 | |
5bd39e93 | 31 | const struct base_arch_s |
32 | avr_arch_types[] = | |
33 | { | |
34 | /* unknown device specified */ | |
e508bf98 | 35 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, NULL, "avr2" }, |
5bd39e93 | 36 | /* |
e508bf98 | 37 | A M J LM E E E X R d S S O A |
38 | S U M PO L L I M A a t F ff r | |
39 | M L P MV P P J E M t a R s c | |
40 | XW M M M G P a r e h | |
41 | X P A D t t ID */ | |
42 | { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "1", "avr1" }, | |
43 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "2", "avr2" }, | |
44 | { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0x0060, 32, "25", "avr25" }, | |
45 | { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0x0060, 32, "3", "avr3" }, | |
46 | { 0, 0, 1, 0, 1, 0, 0, 0, 0, 0x0060, 32, "31", "avr31" }, | |
47 | { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0x0060, 32, "35", "avr35" }, | |
48 | { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0x0060, 32, "4", "avr4" }, | |
49 | { 0, 1, 1, 1, 0, 0, 0, 0, 0, 0x0060, 32, "5", "avr5" }, | |
50 | { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0x0060, 32, "51", "avr51" }, | |
51 | { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0x0060, 32, "6", "avr6" }, | |
0b6cf66f | 52 | |
e508bf98 | 53 | { 0, 1, 1, 1, 0, 0, 0, 1, 0, 0x2000, 0, "102", "avrxmega2" }, |
54 | { 0, 1, 1, 1, 1, 1, 0, 1, 0, 0x2000, 0, "104", "avrxmega4" }, | |
55 | { 0, 1, 1, 1, 1, 1, 0, 1, 1, 0x2000, 0, "105", "avrxmega5" }, | |
56 | { 0, 1, 1, 1, 1, 1, 1, 1, 0, 0x2000, 0, "106", "avrxmega6" }, | |
57 | { 0, 1, 1, 1, 1, 1, 1, 1, 1, 0x2000, 0, "107", "avrxmega7" } | |
795cff42 | 58 | }; |
59 | ||
8a92b4c3 | 60 | const struct arch_info_s |
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_AVRXMEGA2, | |
90 | "``XMEGA'' devices with more than 8@tie{}KiB and up to 64@tie{}KiB " | |
91 | "of program memory." }, | |
92 | { ARCH_AVRXMEGA4, | |
93 | "``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB " | |
94 | "of program memory." }, | |
95 | { ARCH_AVRXMEGA5, | |
96 | "``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB " | |
97 | "of program memory and more than 64@tie{}KiB of RAM." }, | |
98 | { ARCH_AVRXMEGA6, | |
99 | "``XMEGA'' devices with more than 128@tie{}KiB of program memory." }, | |
100 | { ARCH_AVRXMEGA7, | |
101 | "``XMEGA'' devices with more than 128@tie{}KiB of program memory " | |
102 | "and more than 64@tie{}KiB of RAM." } | |
103 | }; | |
104 | ||
795cff42 | 105 | const struct mcu_type_s avr_mcu_types[] = { |
e508bf98 | 106 | #define AVR_MCU(NAME,ARCH,MACRO,SHORT_SP,ERRATA_SKIP,DATA_SEC,N_FLASH,LIB_NAME)\ |
107 | { NAME, ARCH, MACRO, SHORT_SP, ERRATA_SKIP, DATA_SEC, N_FLASH, LIB_NAME }, | |
c1535dd2 | 108 | #include "avr-mcus.def" |
109 | #undef AVR_MCU | |
795cff42 | 110 | /* End of list. */ |
1e946ea6 | 111 | { NULL, ARCH_UNKNOWN, NULL, 0, 0, 0, 0, NULL } |
795cff42 | 112 | }; |
113 |