Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Mmio: expected type '*volatile , found '*align(1) volatile' #51

@r4gus

Description

@r4gus

Hi,

first of all, thank you for your efforts. I encountered the following error when trying to access regs.DPLL[0].DPLLCTRLB using modify() (regs.DPLL[0].DPLLCTRLA works fine).

.\libs\microzig\src\modules\chips\atsame51j20a\atsame51j20a.zig:86:25: error: expected type '*volatile .chip.registers.Mmio(32,.chip.registers.struct:9277:33)', found '*align(1) volatile .chip.registers.Mmio(32,.chip.registers.struct:9277:33)'
    regs.OSCCTRL.DPLL[0].DPLLCTRLB.modify(.{.REFCLK = 1});
                        ^

The register file can be found here.

zig: 0.10.0-dev.3445+18440cb23
regz: main (last commit is 4b04e50cf14a3df87662dc79863e9b7e3dfc6591)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions