Skip to content

Commit

Permalink
Fixes from jacobly (#43)
Browse files Browse the repository at this point in the history
* fix typo

* bump microzig version with codegen bug fix

---------

Co-authored-by: Jacob Young <[email protected]>
  • Loading branch information
mattnite and jacobly0 authored May 15, 2024
1 parent 2e570a9 commit 1c099ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

.dependencies = .{
.@"microzig/build" = .{
.url = "https://downloads.microzig.tech/microzig-0.12.0/build-0.0.0.tar.gz",
.hash = "1220362d63876dd7ad88d0ee55ab24c2eb7fc49b0441703111d98d7b78bf315ebf70",
.url = "https://downloads.microzig.tech/microzig-0.12.1/build-0.0.1.tar.gz",
.hash = "122066a2dd8e6cfef346bc5cd6de8294fe9d53bde59b65b042750ee25537438df2ad",
},
.@"microzig/bsp/microchip/atsam" = .{
.url = "https://downloads.microzig.tech/microzig-0.12.0/bsp/microchip/atsam-0.0.0.tar.gz",
.hash = "1220aacdf6291f5e3d57cdd51f9a5a9b210dea2080558d6bbe755477b6c5ed19d91e",
.url = "https://downloads.microzig.tech/microzig-0.12.1/bsp/microchip/atsam-0.0.0.tar.gz",
.hash = "122037355c936100684b565d20b32157a067230f7d586874ae291c8ba817e08e8ee1",
},
.mime = .{
.url = "git+https://github.com/andrewrk/mime.git#bf80e2e8b1d9413ddf9abe7d94537388b54c83ab",
Expand Down
2 changes: 1 addition & 1 deletion src/hal/port.zig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub const Mask = packed struct(u33) {
.in => {
m.group.ptr().DIRCLR.write(.{ .DIRCLR = m.pins });
for (0..32) |i| {
if (m.pins & (@as(u32, 1) << 1) != 0)
if (m.pins & (@as(u32, 1) << @intCast(i)) != 0)
m.group.ptr().PINCFG[i].modify(.{ .INEN = 1 });
}
},
Expand Down

0 comments on commit 1c099ac

Please sign in to comment.