Skip to content

Commit

Permalink
Abstract USB device implementation (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4gus authored Apr 23, 2023
1 parent 1092499 commit dd491cc
Show file tree
Hide file tree
Showing 4 changed files with 1,347 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,16 @@ pub fn build(b: *std.build.Builder) !void {
.optimize = optimize,
});

const core_tests = b.addTest(.{
.root_source_file = .{
.path = comptime root_dir() ++ "/src/core.zig",
},
.optimize = optimize,
});

const test_step = b.step("test", "build test programs");
test_step.dependOn(&minimal.inner.step);
test_step.dependOn(&has_hal.inner.step);
test_step.dependOn(&has_board.inner.step);
test_step.dependOn(&b.addRunArtifact(core_tests).step);
}
6 changes: 6 additions & 0 deletions src/core.zig
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
pub const experimental = @import("core/experimental.zig");
/// USB data types and helper functions
pub const usb = @import("core/usb.zig");

test "core tests" {
_ = usb;
}
Loading

0 comments on commit dd491cc

Please sign in to comment.