Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion port/raspberrypi/rp2xxx/src/hal/gpio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub const Mask =

pub fn read(self: Mask) u48 {
const lower_mask = self.lower_32_mask();
const lower_val: u32 = SIO.GPIO_IN & lower_mask;
const lower_val: u32 = SIO.GPIO_IN.raw & lower_mask;
const upper_mask = self.upper_16_mask();
const upper_val: u16 = @truncate(SIO.GPIO_HI_IN.raw & upper_mask);
return (@as(u48, upper_val) << 32) | @as(u48, lower_val);
Expand Down
6 changes: 3 additions & 3 deletions port/raspberrypi/rp2xxx/src/hal/pio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ pub const StateMachine = common.StateMachine;
pub const Instruction = common.Instruction(chip);
pub const PinMapping = common.PinMapping;
pub const PinMappingOptions = common.PinMappingOptions;
pub const StateMachineInitOptions = chip_specific.StateMachineInitOptions;
pub const LoadAndStartProgramOptions = chip_specific.LoadAndStartProgramOptions;
pub const StateMachineInitOptions = common.StateMachineInitOptions(chip);
pub const LoadAndStartProgramOptions = common.LoadAndStartProgramOptions(chip);
pub const ClkDivOptions = common.ClkDivOptions;
pub const ShiftOptions = chip_specific.ShiftOptions;
pub const ShiftOptions = common.ShiftOptions(chip);

pub const assembler = @import("pio/assembler.zig");
const encoder = @import("pio/assembler/encoder.zig");
Expand Down
2 changes: 1 addition & 1 deletion port/raspberrypi/rp2xxx/src/hal/pio/common.zig
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ pub fn StateMachineInitOptions(chip: Chip) type {

pub fn LoadAndStartProgramOptions(chip: Chip) type {
return struct {
clkdiv: ClkDivOptions,
clkdiv: ClkDivOptions = .{},
shift: ShiftOptions(chip) = .{},
pin_mappings: PinMappingOptions = .{},
exec: ExecOptions = .{},
Expand Down
Loading