diff options
author | Tim Radvan <tim@tjvr.org> | 2021-01-30 21:48:53 +0000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-02 11:32:48 +1100 |
commit | 7a9027fd5d64868322b9a82b0ac47ac0eba0167d (patch) | |
tree | a617a50fe020320fec108229241c46ac2108f39d /docs/conf.py | |
parent | 9b277d981528173f59daab196873a8c11aa17e26 (diff) |
rp2/rp2_pio: Add JMP PIN support for PIO.
PIO state machines can make a conditional jump on the state of a pin: the
`JMP PIN` command. This requires the pin to be configured with
`sm_config_set_jmp_pin`, but until now we didn't have a way of doing that
in MicroPython.
This commit adds a new `jmp_pin=None` argument to `StateMachine`. If it is
not `None` then we try to interpret it as a Pin, and pass its value to
`sm_config_set_jmp_pin`.
Signed-off-by: Tim Radvan <tim@tjvr.org>
Diffstat (limited to 'docs/conf.py')
0 files changed, 0 insertions, 0 deletions