Skip to content

Commit b0c4358

Browse files
committed
cleanup
1 parent 70547f8 commit b0c4358

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/src/cpus/cortex_m.zig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,10 @@ pub const startup_logic = struct {
662662
pub const _vector_table: VectorTable = blk: {
663663
var tmp: VectorTable = .{
664664
.initial_stack_pointer = microzig.config.end_of_stack,
665-
// TODO: _ramimage_start if that target?
666-
.Reset = .{ .c = if (is_ramimage()) microzig.cpu.startup_logic.ramimage_start else microzig.cpu.startup_logic._start },
665+
.Reset = .{ .c = if (is_ramimage())
666+
microzig.cpu.startup_logic.ramimage_start
667+
else
668+
microzig.cpu.startup_logic._start },
667669
};
668670

669671
for (@typeInfo(@TypeOf(microzig_options.interrupts)).@"struct".fields) |field| {
@@ -681,7 +683,7 @@ fn is_ramimage() bool {
681683
// HACK
682684
// TODO: Use microzig_options?
683685
if (microzig.config.board_name) |board_name|
684-
return (std.mem.containsAtLeast(u8, board_name, 1, "ram image"));
686+
return std.mem.containsAtLeast(u8, board_name, 1, "ram image");
685687
return false;
686688
}
687689

0 commit comments

Comments
 (0)