add umm allocator (#148)

wch-ch32v003
Vesim 1 year ago committed by GitHub
parent 3bdb7381be
commit d361a622ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -538,6 +538,9 @@ pub fn addFirmware(
},
});
const umm = mz.dependency("umm-zig", .{}).module("umm");
fw.modules.microzig.dependencies.put("umm", umm) catch @panic("out of memory");
fw.artifact.addModule("app", fw.modules.app);
fw.artifact.addModule("microzig", fw.modules.microzig);

@ -10,5 +10,9 @@
.url = "https://github.com/ZigEmbeddedGroup/regz/archive/b0ded63fc284da0ed9f4776eb7d1c4ad7175622d.tar.gz",
.hash = "1220e9299f949d3566a1dc4dd62caf82a06bb6c8ad5a693e62117b0941da9dc55ea2",
},
.@"umm-zig" = .{
.url = "https://github.com/ZigEmbeddedGroup/umm-zig/archive/99d815adfbc5cc4ad385dd765a6192f85e54179f.tar.gz",
.hash = "12207ef7375ea45e97f4fba9c5dfa74d022902893c4dbf1a0076726b7ec39a02ea3f",
},
},
}

@ -1,7 +1,9 @@
pub const experimental = @import("core/experimental.zig");
pub const heap = @import("core/heap.zig");
/// USB data types and helper functions
pub const usb = @import("core/usb.zig");
test "core tests" {
_ = usb;
_ = heap;
}

@ -0,0 +1,5 @@
pub const UmmAllocator = @import("umm").UmmAllocator;
test "heap tests" {
_ = UmmAllocator;
}
Loading…
Cancel
Save