We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_irq_regs
sm_enable_interrupt uses this function, but if I have a PIO program that wants to wait for the interrupt, I need to re-write the function as below:
sm_enable_interrupt
fn get_irq_regs(irq: Irq) *volatile Irq.Regs { const PIO0 = microzig.chip.peripherals.PIO0; const irq_regs = @as(*volatile [2]Irq.Regs, @ptrCast(&PIO0.IRQ0_INTE)); return &irq_regs[@intFromEnum(irq)]; }
And this is hardcoded for PIO0. I can't even call get_regs because that method is also not public.
get_regs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sm_enable_interrupt
uses this function, but if I have a PIO program that wants to wait for the interrupt, I need to re-write the function as below:And this is hardcoded for PIO0. I can't even call
get_regs
because that method is also not public.The text was updated successfully, but these errors were encountered: