Lines Matching refs:mcu
107 print_mcu (const avr_mcu_t *mcu)
113 enum avr_arch_id arch_id = mcu->arch_id;
115 for (arch_mcu = mcu; arch_mcu->macro; )
123 if (snprintf (name, sizeof name, "specs-%s", mcu->name) >= (int) sizeof name)
128 bool absdata = (mcu->dev_attribute & AVR_ISA_LDS) != 0;
129 bool errata_skip = (mcu->dev_attribute & AVR_ERRATA_SKIP) != 0;
130 bool rmw = (mcu->dev_attribute & AVR_ISA_RMW) != 0;
131 bool sp8 = (mcu->dev_attribute & AVR_SHORT_SP) != 0;
132 bool rcall = (mcu->dev_attribute & AVR_ISA_RCALL);
133 bool is_arch = mcu->macro == NULL;
138 && mcu->flash_pm_offset
139 && mcu->flash_pm_offset != arch->flash_pm_offset)
141 flash_pm_offset = mcu->flash_pm_offset;
174 fprintf (f, "device %s (core %s, %d-bit SP%s)\n", mcu->name,
187 fprintf (f, "\tcrt%s.o%%s", mcu->name);
191 fprintf (f, "\t%%{!nodevicelib:-l%s}", mcu->name);
198 int n_flash = 1 + (mcu->flash_size - 1) / 0x10000;
241 mcu->flash_size == 0x2000 ? 8
242 : mcu->flash_size == 0x4000 ? 16
243 : mcu->flash_size == 0x8000 ? 32
244 : mcu->flash_size == 0x10000 ? 64
265 if (mcu->data_section_start
268 0x800000UL + mcu->data_section_start);
272 if (mcu->text_section_start != 0x0)
273 fprintf (f, "\t%%{!Ttext:-Ttext 0x%lX}", 0UL + mcu->text_section_start);
290 fprintf (f, "\t-D__AVR_DEVICE_NAME__=%s", mcu->name);
295 fprintf (f, "\t-D%s", mcu->macro);
319 for (const avr_mcu_t *mcu = avr_mcu_types; mcu->name; mcu++)
320 print_mcu (mcu);