4 Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
6 This file is part of simavr.
8 simavr is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 simavr is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with simavr. If not, see <http://www.gnu.org/licenses/>.
25 #include "avr_mcu_section.h"
33 typedef struct elf_firmware_t {
37 char tracename[128]; // trace filename
46 // register to listen to for commands from the firmware
47 uint16_t command_register_addr;
49 uint32_t flashbase; // base address
54 // read the .eeprom section of the elf, too
59 avr_symbol_t ** codeline;
60 uint32_t codesize; // in elements
64 int elf_read_firmware(const char * file, elf_firmware_t * firmware);
66 void avr_load_firmware(avr_t * avr, elf_firmware_t * firmware);