Skip to content

Commit

Permalink
rp2xxx: Make pio.Irq.get_irq_regs public (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather authored Dec 2, 2024
1 parent 813b85c commit dad43d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/raspberrypi/rp2xxx/src/hal/pio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub const Pio = enum(u1) {
return &sm_regs[@intFromEnum(sm)];
}

fn get_irq_regs(self: Pio, irq: Irq) *volatile Irq.Regs {
pub fn get_irq_regs(self: Pio, irq: Irq) *volatile Irq.Regs {
const pio_regs = self.get_regs();
const irq_regs = @as(*volatile [2]Irq.Regs, @ptrCast(&pio_regs.IRQ0_INTE));
return &irq_regs[@intFromEnum(irq)];
Expand Down

0 comments on commit dad43d5

Please sign in to comment.