Skip to content

Use only the latest polarity when reconfiguring an enable pin - #7

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/enable-pin-polarity-reconfiguration
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/enable-pin-polarity-reconfiguration

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Change

When an enable pin is configured with the opposite polarity, clear its old assignment before writing the pin. This applies regardless of the output backend. Two different enable pins can still be configured independently.

Validation

  • In the host simulator, changing the polarity of one external enable pin caused two opposing writes per enable or disable call before the change.
  • Tested both reconfiguration directions. The patched version writes one level per call, matching the final polarity.
  • All 32 host CTest entries passed on Linux.

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

Successfully merging this pull request may close these issues.

1 participant