Skip to content

Commit

Permalink
rp2xxx: hal: gpio: Fix rp2350 GPIO reg access
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed Jan 25, 2025
1 parent f1dfca4 commit 1cab9b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions port/raspberrypi/rp2xxx/src/hal/gpio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ pub const Pin = enum(u6) {
else
0;
} else {
// TODO: regz inconsistencies
return if ((SIO.GPIO_IN & gpio.mask()) != 0)
return if ((SIO.GPIO_IN.raw & gpio.mask()) != 0)
1
else
0;
Expand Down

0 comments on commit 1cab9b0

Please sign in to comment.