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

applet.interface.uart: allow to invert the UART line signals (=idle low) #198

Merged
merged 1 commit into from Aug 17, 2020

Conversation

electroniceel
Copy link
Member

Adds the --invert {RX,TX,RXTX,both,none} cli argument and the corresponding
build-time parameters to the uart gateware.

This option comes in handy when driving UART through inverting optocouplers for example.

@whitequark sorry, I haven't done a conversion to nMigen of the module. I don't have confidence in my (n)Migen skills enough for this.

@whitequark
Copy link
Member

I'd probably use two arguments, --invert-rx and --invert-tx, instead of one with five possible values.

@electroniceel
Copy link
Member Author

I'd probably use two arguments, --invert-rx and --invert-tx, instead of one with five possible values.

That was the other option I was considering. I can change it.

Did you look at the other code?

@whitequark
Copy link
Member

The code is basically fine I think.

Adds the --invert-rx and --invert-tx cli arguments and the corresponding
build-time parameters to the uart gateware.
@electroniceel
Copy link
Member Author

Ok, new arguments implemented.

@whitequark
Copy link
Member

Thanks!

@whitequark whitequark merged commit 02b15ba into GlasgowEmbedded:master Aug 17, 2020
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.

None yet

2 participants