Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rp2/rp2_pio: Replace explicit pio ternary expression with pio_get_index.
There are three changes here: - Fix `rp2_pio_print` to use `pio_get_index()` too, since it had its own copy of the ternary expression. - Remove a ternary from `rp2_pio_state_machine` and calculate it from `pio_get_index`. - Remove a ternary on `GPIO_FUNC_PIO0` vs `GPIO_FUNC_PIO1`. These constants are sequentially ordered so we can calculate them too. Signed-off-by: Phil Howard <[email protected]>
- Loading branch information