diff options
author | Phil Howard <github@gadgetoid.com> | 2024-07-02 12:41:29 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-07-03 16:48:18 +1000 |
commit | f61fac0ba6e2684b8bb4b11c7a768b0cb805c198 (patch) | |
tree | 2c8f5fdd1346540211f07239e341ceb2d0222e1c /docs/esp8266/tutorial/network_tcp.rst | |
parent | 462fa5f94ff7a90afb42e72ce145309fa671ddce (diff) | |
download | micropython-f61fac0ba6e2684b8bb4b11c7a768b0cb805c198.tar.gz micropython-f61fac0ba6e2684b8bb4b11c7a768b0cb805c198.zip |
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 <github@gadgetoid.com>
Diffstat (limited to 'docs/esp8266/tutorial/network_tcp.rst')
0 files changed, 0 insertions, 0 deletions