Add irq_is_pending() accessor for checking IRQ line state from foregr… #3069

Merged
Wren6991 merged 2 commits from add-irq_is_pending into develop 2026-07-13 12:38:57 -05:00
Wren6991 commented 2026-07-13 05:49:17 -05:00 (Migrated from github.com)

We've accumulated a few copies of this accessor in test code, so it seems like a useful pattern (albeit situational).

We've accumulated a few copies of this accessor in test code, so it seems like a useful pattern (albeit situational).
will-v-pi (Migrated from github.com) reviewed 2026-07-13 05:49:17 -05:00
lurch commented 2026-07-13 06:02:09 -05:00 (Migrated from github.com)

CI isn't happy:

/opt/actions-runner/_work/pico-sdk/pico-sdk/src/rp2_common/hardware_irq/irq.c: In function 'irq_is_pending':
/opt/actions-runner/_work/pico-sdk/pico-sdk/src/rp2_common/hardware_irq/irq.c:156:25: error: subscripted value is neither array nor pointer nor vector
  156 |     return nvic_hw->ispr[num / 32u] & (1u << (num % 32u));
      |                         ^

EDIT: Now fixed 👍

CI isn't happy: ``` /opt/actions-runner/_work/pico-sdk/pico-sdk/src/rp2_common/hardware_irq/irq.c: In function 'irq_is_pending': /opt/actions-runner/_work/pico-sdk/pico-sdk/src/rp2_common/hardware_irq/irq.c:156:25: error: subscripted value is neither array nor pointer nor vector 156 | return nvic_hw->ispr[num / 32u] & (1u << (num % 32u)); | ^ ``` EDIT: Now fixed :+1:
kilograham (Migrated from github.com) approved these changes 2026-07-13 12:38:48 -05:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!3069
No description provided.