Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PIO side_set Pin Direction #69

Open
jchawks opened this issue Sep 16, 2024 · 0 comments
Open

Support for PIO side_set Pin Direction #69

jchawks opened this issue Sep 16, 2024 · 0 comments

Comments

@jchawks
Copy link

jchawks commented Sep 16, 2024

Currently the PIO Exec register configuration bit SIDE_EN is supported in the parser, but not support for SIDE_PINDIR:
This means that in the line
.side_set 1 opt pindirs
the opt token is recognized but not pindirs:

    ...       elif line.startswith(".side_set"):
                sideset_count = int(line.split()[1], 0)
                sideset_enable = "opt" in line
            elif line.endswith(":"): 
           ...

If a sideset_dir variable is added, that can apply to the delay limit adjustment too, currently:
max_delay = 2 ** (5 - sideset_count - sideset_enable) - 1
Additional detail in the request for the corresponding CP StateMachine() support is here,
[https://github.com/adafruit/circuitpython/issues/9630]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant