From: Michel Pollet Date: Wed, 16 Dec 2009 00:16:55 +0000 (+0000) Subject: Fixed 'ledramp' example to reflect new loader X-Git-Tag: v1.0a1~54 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=ed76382b2f6abe7742c95825fb29b38167efcee9;p=sx%2Fsimavr.git Fixed 'ledramp' example to reflect new loader No functional changes Signed-off-by: Michel Pollet --- diff --git a/examples/board_ledramp/ledramp.c b/examples/board_ledramp/ledramp.c index ca18c58..b1af8d4 100644 --- a/examples/board_ledramp/ledramp.c +++ b/examples/board_ledramp/ledramp.c @@ -145,11 +145,11 @@ int main(int argc, char *argv[]) printf("Firmware pathname is %s\n", path); elf_read_firmware(path, &f); - printf("firmware %s f=%d mmcu=%s\n", fname, (int)f.mmcu.f_cpu, f.mmcu.name); + printf("firmware %s f=%d mmcu=%s\n", fname, (int)f.frequency, f.mmcu); - avr = avr_make_mcu_by_name(f.mmcu.name); + avr = avr_make_mcu_by_name(f.mmcu); if (!avr) { - fprintf(stderr, "%s: AVR '%s' now known\n", argv[0], f.mmcu.name); + fprintf(stderr, "%s: AVR '%s' now known\n", argv[0], f.mmcu); exit(1); } avr_init(avr);