Skip to content

Conversation

@KewlKris
Copy link
Contributor

@KewlKris KewlKris commented Mar 1, 2025

When including the .mov_status directive to configure STATUS based on an IRQ flag (ex: .mov_status irq set 0), pioasm generates code with a reference to "STATUS_IRQ_INDEX", but this is different from the member name as defined in pio.h.

This generated the following code:

sm_config_set_mov_status(&c, STATUS_IRQ_INDEX, 0);

And thus caused the compile error:

error: 'STATUS_IRQ_INDEX' undeclared (first use in this function); did you mean 'STATUS_IRQ_SET'?

This fix changes the generated name so it matches the enum.

The enum pio_mov_status_type expects the member name to be STATUS_IRQ_SET.
@lurch lurch added the pioasm label Mar 1, 2025
@kilograham kilograham added this to the 2.1.2 milestone Mar 18, 2025
@kilograham
Copy link
Contributor

oops; thanks

@kilograham kilograham merged commit 6d8588d into raspberrypi:develop Mar 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants