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

[BACKPORT] UART ioctl's #54

Merged
merged 2 commits into from
Jul 4, 2019

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented Jul 4, 2019

This brings the TIOCSINVERT and TIOCSSWAP UART ioctl's from NuttX master.
It allows us to handle the RC port in a cleaner way with less board-specific code and configurable RC port.

… to invert and swap RX/TX on STM32F7 UARTs. I added the TIOCGINVERT as well to reserve the IOCTL number, but did not implement it. This is the same as for TIOCGSINGLEWIRE.
…equest #930)

serial: add TIOCSINVERT and TIOCSSWAP ioctl's for stm32{l4,h7} and imxrt

* stm32l4 serial: add TIOCSINVERT and TIOCSSWAP ioctl's

* stm32l4 serial: ensure TIOCSSINGLEWIRE is atomic and UE disabled

* stm32h7 serial: add TIOCSINVERT and TIOCSSWAP ioctl's

* imxrt serial: add TIOCSINVERT ioctl

Approved-by: Gregory Nutt <gnutt@nuttx.org>
@dagar
Copy link
Member

dagar commented Jul 4, 2019

Great, this looks much cleaner.

Given the timing of an imminent PX4/Firmware NuttX minor bump (7.28 -> 7.29 PX4/PX4-Autopilot#12344) how about merging into px4_firmware_nuttx-7.29+?

If testing hits any issues that drag it out beyond this week we can reconsider.

@dagar dagar requested review from dagar and davids5 July 4, 2019 15:42
Copy link
Member

@davids5 davids5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - @bkueng - thank you for getting it in.

@bkueng
Copy link
Member Author

bkueng commented Jul 4, 2019

Given the timing of an imminent PX4/Firmware NuttX minor bump (7.28 -> 7.29 PX4/PX4-Autopilot#12344) how about merging into px4_firmware_nuttx-7.29+?

Yes that's fine with me. We can also apply it to both branches, since it's not doing anything w/o corresponding FW changes, and then pull into whichever comes first.

@dagar
Copy link
Member

dagar commented Jul 4, 2019

Yes both is fine, I just didn't want it to get lost in the submodule change.

@dagar dagar merged commit 0ebab19 into px4_firmware_nuttx-7.28+ Jul 4, 2019
@dagar dagar deleted the uart_invert_ioctl_backport branch July 4, 2019 17:22
@bkueng
Copy link
Member Author

bkueng commented Jul 9, 2019

I forgot the kinetis uart, and I pushed the backported commits to the 7.28+ and 7.29+ branches: efeeac1, a6f5881

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.

3 participants