Skip to content

Commit

Permalink
Uses CPU information instead of currently hard-coded locals
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix "xq" Queißner committed Jan 15, 2024
1 parent 0387120 commit 6f1b3e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ pub fn main() !u8 {
try stdout.print("Information for {s}:\n", .{@tagName(cli.options.mcu)});
try stdout.print(" Generation: {s: >11}\n", .{@tagName(cpu.instruction_set)});
try stdout.print(" Code Model: {s: >11}\n", .{@tagName(cpu.code_model)});
try stdout.print(" RAM: {d: >5} bytes\n", .{flash_storage.memory().size});
try stdout.print(" Flash: {d: >5} bytes\n", .{sram.memory().size});
try stdout.print(" EEPROM: {d: >5} bytes\n", .{eeprom.memory().size});
try stdout.print(" RAM: {d: >5} bytes\n", .{cpu.flash.size});
try stdout.print(" Flash: {d: >5} bytes\n", .{cpu.sram.size});
try stdout.print(" EEPROM: {d: >5} bytes\n", .{cpu.eeprom.size});
return 0;
}

Expand Down

0 comments on commit 6f1b3e9

Please sign in to comment.