We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57480b1 commit e2f86d7Copy full SHA for e2f86d7
1 file changed
port/raspberrypi/rp2xxx/src/hal/pio/common.zig
@@ -178,9 +178,8 @@ pub fn PioImpl(EnumType: type, chip: Chip) type {
178
.none => insn,
179
.jmpslot => blk: {
180
// 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;
+ var jmp: Instruction(chip) = @bitCast(insn);
+ jmp.payload.jmp.address += offset;
184
break :blk @as(u16, @bitCast(jmp));
185
},
186
};
0 commit comments