-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
A function pio_sm_set_consecutive_pins(), complementary to pio_sm_set_consecutive_pindirs(), would allow to (re-)initialize some pins to 0 (or all-ones) without having to resort to pio_sm_set_pins_with_mask64() and having to calculate a mask first. It would use a count parameter like used for pio_sm_set_*_pins(), sm_config_set_*_pin_count() or sm_config_set_*_pins() already.
It could probably be implemented by passing an additional parameter with pio_pins or pio_pindirs to a renamed pio_sm_set_consecutive_pindirs() with two wrappers.