add 2 shared irq handlers when using stdio_usb #3037

Merged
kilograham merged 2 commits from shared-irq-handlers into develop 2026-06-29 11:30:47 -05:00
kilograham commented 2026-06-27 16:57:12 -05:00 (Migrated from github.com)

note i didn't add a new config option to turn this off, since you can just set PICO_MAX_SHARED_IRQ_HANDLERS if you actually really care

note i didn't add a new config option to turn this off, since you can just set PICO_MAX_SHARED_IRQ_HANDLERS if you actually really care
kilograham commented 2026-06-27 16:57:41 -05:00 (Migrated from github.com)

note i didn't add more on rp2350 by default, as no one else has complained

note i didn't add more on rp2350 by default, as no one else has complained
kilograham commented 2026-06-27 16:58:21 -05:00 (Migrated from github.com)

fixes #2732

fixes #2732
lurch (Migrated from github.com) reviewed 2026-06-28 08:15:42 -05:00
@ -8,9 +8,14 @@
#define _HARDWARE_IRQ_H
// These two config items are also used by assembler, so keeping separate
lurch (Migrated from github.com) commented 2026-06-28 08:15:41 -05:00
// PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=6 if using stdio_usb otherwise 4, advanced=true, group=hardware_irq
```suggestion // PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=6 if using stdio_usb otherwise 4, advanced=true, group=hardware_irq ```
will-v-pi (Migrated from github.com) reviewed 2026-06-28 15:07:53 -05:00
@ -8,9 +8,14 @@
#define _HARDWARE_IRQ_H
// These two config items are also used by assembler, so keeping separate
will-v-pi (Migrated from github.com) commented 2026-06-28 15:07:53 -05:00

It might be better phrased something like “4 available for use plus 2 used by stdio_usb if that is in use”? Probably with less clunky wording than mine

It might be better phrased something like “4 available for use plus 2 used by stdio_usb if that is in use”? Probably with less clunky wording than mine
lurch (Migrated from github.com) reviewed 2026-06-28 17:12:20 -05:00
@ -8,9 +8,14 @@
#define _HARDWARE_IRQ_H
// These two config items are also used by assembler, so keeping separate
lurch (Migrated from github.com) commented 2026-06-28 17:12:20 -05:00

Hmmm, maybe "6 if using stdio_usb (with 2 of those used by stdio_usb itself) otherwise 4" ? 🤷
(I'm just kinda guessing here as I don't really understand this shared IRQ handlers stuff)

Hmmm, maybe "6 if using stdio_usb (with 2 of those used by stdio_usb itself) otherwise 4" ? :shrug: (I'm just kinda guessing here as I don't really understand this shared IRQ handlers stuff)
will-v-pi (Migrated from github.com) approved these changes 2026-06-29 05:34:26 -05:00
will-v-pi (Migrated from github.com) left a comment

One comment, but approving anyway, as it's good enough without addressing that

One comment, but approving anyway, as it's good enough without addressing that
@ -10,3 +10,3 @@
// These two config items are also used by assembler, so keeping separate
// PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=4, advanced=true, group=hardware_irq
// PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=6 if using stdio_usb otherwise 4, advanced=true, group=hardware_irq
#ifndef PICO_MAX_SHARED_IRQ_HANDLERS
will-v-pi (Migrated from github.com) commented 2026-06-29 05:33:51 -05:00

Maybe this could do with some better clarification that you're not getting extra shared IRQ handlers to use when you're using stdio_usb, the number is just being increased so stdio_usb still leaves you with 4 handlers to use?

Maybe this could do with some better clarification that you're not getting extra shared IRQ handlers to use when you're using stdio_usb, the number is just being increased so stdio_usb still leaves you with 4 handlers to use?
peterharperuk (Migrated from github.com) approved these changes 2026-06-29 05:49:45 -05:00
kilograham (Migrated from github.com) reviewed 2026-06-29 11:30:43 -05:00
@ -10,3 +10,3 @@
// These two config items are also used by assembler, so keeping separate
// PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=4, advanced=true, group=hardware_irq
// PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=6 if using stdio_usb otherwise 4, advanced=true, group=hardware_irq
#ifndef PICO_MAX_SHARED_IRQ_HANDLERS
kilograham (Migrated from github.com) commented 2026-06-29 11:30:43 -05:00

feel free to PR

feel free to PR
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!3037
No description provided.