From b43131440881d873abd21d6d8bd14e4127b9bdc3 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Wed, 15 May 2024 00:52:58 -0400 Subject: [PATCH 1/2] fix typo --- src/hal/port.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hal/port.zig b/src/hal/port.zig index 2c04b93..2b9214f 100644 --- a/src/hal/port.zig +++ b/src/hal/port.zig @@ -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 }); } }, From f35c454feccd9dd37aed5b47ccd377303f193289 Mon Sep 17 00:00:00 2001 From: Matt Knight Date: Wed, 15 May 2024 00:41:40 -0700 Subject: [PATCH 2/2] bump microzig version with codegen bug fix --- build.zig.zon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index aad0372..f6b3839 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -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",