Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bsp/microchip/atsam/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const chips = struct {
.chip = .{
.name = "ATSAMD51J19A",
.url = "https://www.microchip.com/en-us/product/ATSAMD51J19A",
.cpu = MicroZig.cpus.cortex_m4,
.cpu = MicroZig.cpus.cortex_m4f,
.register_definition = .{
.atdf = .{ .path = build_root ++ "/src/chips/ATSAMD51J19A.atdf" },
},
Expand Down
12 changes: 12 additions & 0 deletions core/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ pub const cpus = struct {
},
};

pub const cortex_m4f = MicroZig.Cpu{
.name = "ARM Cortex-M4F",
.root_source_file = .{ .path = build_root ++ "/src/cpus/cortex_m.zig" },
.target = std.zig.CrossTarget{
.cpu_arch = .thumb,
.cpu_model = .{ .explicit = &std.Target.arm.cpu.cortex_m4 },
.cpu_features_add = std.Target.arm.featureSet(&.{.vfp4d16sp}),
.os_tag = .freestanding,
.abi = .eabihf,
},
};

pub const riscv32_imac = MicroZig.Cpu{
.name = "RISC-V 32-bit",
.root_source_file = .{ .path = build_root ++ "/src/cpus/riscv32.zig" },
Expand Down