No function for gpio irq over #265

Closed
opened 2021-03-17 18:08:33 -05:00 by Volksolive · 2 comments
Volksolive commented 2021-03-17 18:08:33 -05:00 (Migrated from github.com)

There is functions to invert the signal for gpio out, in and out enable (oe) but there is no function for the gpio irq signal invert, something like gpio_set_irqover to stay consistent with the other functions.
Maybe it could also be nice in the gpio_set_inover to add a third parameter like bool irqover which would invert both in and irq if true or only in if false.
I can see cases where you would want both to be inverted, for example a debounce/filter where you want the IT to start a delay and after this delay, check the state of the pin.

There is functions to invert the signal for gpio out, in and out enable (oe) but there is no function for the gpio irq signal invert, something like gpio_set_irqover to stay consistent with the other functions. Maybe it could also be nice in the gpio_set_inover to add a third parameter like bool irqover which would invert both in and irq if true or only in if false. I can see cases where you would want both to be inverted, for example a debounce/filter where you want the IT to start a delay and after this delay, check the state of the pin.
Volksolive commented 2021-03-17 19:14:26 -05:00 (Migrated from github.com)

BTW the gpio_override enum is not mentioned in the SDK documentation

BTW the gpio_override enum is not mentioned in the SDK documentation
kilograham commented 2021-04-08 16:13:58 -05:00 (Migrated from github.com)

Same bucket as #290

Same bucket as #290
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#265
No description provided.