Skip to content

Commit e2f86d7

Browse files
committed
Don't redefine Jmp instruction struct
1 parent 57480b1 commit e2f86d7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

port/raspberrypi/rp2xxx/src/hal/pio/common.zig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,8 @@ pub fn PioImpl(EnumType: type, chip: Chip) type {
178178
.none => insn,
179179
.jmpslot => blk: {
180180
// Add the base address of the program to the jmp offset so it's relative to the start
181-
const Jmp = packed struct(u16) { address: u5, reset: u11 };
182-
var jmp: Jmp = @bitCast(insn);
183-
jmp.address += offset;
181+
var jmp: Instruction(chip) = @bitCast(insn);
182+
jmp.payload.jmp.address += offset;
184183
break :blk @as(u16, @bitCast(jmp));
185184
},
186185
};

0 commit comments

Comments
 (0)