Skip to content

Support for PIO side_set Pin Direction #69

Closed
@jchawks

Description

@jchawks

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions