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

Question about main UART #8

Open
halindrome opened this issue Feb 21, 2017 · 1 comment
Open

Question about main UART #8

halindrome opened this issue Feb 21, 2017 · 1 comment

Comments

@halindrome
Copy link

In the RPi 3 you can switch the bt to the minuart with the pi3-miniuart-bt kernel dtoverlay. When you do this, the main uart is exposed on pins 8 and 10... and it maps to /dev/serial0. I guess my question is do we need to do anything to use this code to enable CTS / RTS on serial0 in this mode? Or does the remapping at the kernel level magically deal with this?

@jcwren
Copy link

jcwren commented Oct 2, 2017

You have to manage hardware flow control via an ioctl() call. You should never count on it being in a given state, as another program may have changed the mode and not restored the previous mode on exit.

See Serial Programming Guide for POSIX Operating Systems for a guide.

You can also use stty to manage the port's configuration.

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

2 participants