Skip to content

Commit

Permalink
poc: GlobalConfiguration doesn't work for UART on rp2350
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed Mar 7, 2025
1 parent ce28cf3 commit a84f2cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/raspberrypi/rp2xxx/src/blinky.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const rp2xxx = microzig.hal;
const time = rp2xxx.time;

const pin_config = rp2xxx.pins.GlobalConfiguration{
.GPIO25 = .{
.name = "led",
.direction = .out,
.GPIO0 = .{
.name = "uart",
.function = .UART0_TX,
},
};

Expand All @@ -16,7 +16,7 @@ pub fn main() !void {
pin_config.apply();

while (true) {
pins.led.toggle();
// pins.uart.toggle();
time.sleep_ms(250);
}
}

0 comments on commit a84f2cd

Please sign in to comment.