-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Push single wire operations into stm32_serial.c #95
Conversation
…erify HoTT telemetry setup.
case TIOCSRS485: | ||
{ | ||
/* Change the TX port to be open-drain/push-pull */ | ||
if (arg == SER_RS485_ENABLED) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that you want to use RS485 mode? Normally, RS485 drivers use separate Tx and Rx data pairs, and that's my understanding of the way that RS485 mode is implemented in the STM32 UART driver for NuttX.
I think you probably want a separate mode here; it's not RS485, and it's not LIN.
I guess I misunderstood your comment via Email "There are some RS-485 ioctls being handled there already; you can track them back to the standard system header and allocate a new ioctl..." where you, I now see, meant add a new one, not base it on this. Yes, RS485 uses separate RX/TX. |
Sorry for the long delay on this. Hopefully this is heading in the right direction. |
Can you merge master into this? The patch currently doesn't apply ;-). |
@@ -1401,6 +1401,27 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) | |||
} | |||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently giving this section an in-depth review with respect to mergeability back to NuttX mainline.
This conflicts with the NuttX merge - can you update or close the request? |
This has been merged into #67 and is therefore no longer required. Closing. |
- jMAVSim in PX4/Firmware (0df34af): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (684e297): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (6c3e79f): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (6c3e79f): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (dc50a56): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (fc7c7ac): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (fc7c7ac): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (1079ae3): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (a97151f): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (a97151f): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
- jMAVSim in PX4/Firmware (a97151f): PX4/jMAVSim@0c25b7c - jMAVSim current upstream: PX4/jMAVSim@8b2f456 - Changes: PX4/jMAVSim@0c25b7c...8b2f456 8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style 3d0174a 2019-02-27 Matthias Grob - Fix shell script style
NuttX: - https://github.com/PX4-NuttX/nuttx/tree/master - PX4/NuttX@9babc64 Changes from PX4/NuttX (PX4/NuttX@c6ba2c1) in current PX4/master (4f362f5) PX4/NuttX@c6ba2c1...9babc64 9babc64438 (HEAD, origin/master) Merge branch 'master' of github.com:apache/incubator-nuttx 21ea255 net/devif/devif_poll.c: Correct a new warning found in build testing. devif/devif_poll.c:768:7: warning: unused variable 'hsec' [-Wunused-variable] (#97) aa6efbd800 Merge branch 'master' of bitbucket.org:nuttx/nuttx 81651f1357 Merge branch 'master' of github.com:apache/incubator-nuttx f005698 Fix a few errors concerning use of section block comments in .c files: (#95) 3a8241ecd0 Merge branch 'master' of github.com:apache/incubator-nuttx f8bcd58 Fix format warn (#96) 84153ad arch/mips/src/pic32mz/pic32mz-timer.c: Eliminate a warning found during testing. 4224038c6e Merge branch 'master' of github.com:apache/incubator-nuttx e507ca4 imxrt1050-evk/include/board.h: Add missing definitions. Recent i.MXRT changes added the definition IMXRT_USB1_PLL_DIV_SELECT to the imxrt1020-evk and imxrt1060-evk board.h header files but NOT to the imxrt10%0-evk. As a result EVERY i.MXR 1050 board configuration with USB enabled failed to compile during build testing. Another day without a successfull build test 8( (#93) Apps: - https://github.com/PX4/NuttX-apps/tree/master - PX4/NuttX-apps@561fc02 Changes from PX4/NuttX-apps (PX4/NuttX-apps@91b6ad6) in current PX4/master (4f362f5) PX4/NuttX-apps@91b6ad6...561fc02 561fc02a (HEAD -> master, origin/master) netutils/ftpd/ftpd.c: Fix an error introduced in PR10. In error clean-up, it was trying to free memory on an error where we failed allocated memory. Not good. e6785097 apps/netutils/ftpd/ftpd.c: Fixes several problems: 573f07f3 fix passwd.h:103:30: warning: passwd_verify with no effect [-Wunused-value] 7fd1b906 delete all characters from char to EOL 967e7e29 system: readline: Improve security 01e2b117 system: zmodem: Improve zmodem send performance 221a4587 system: zmodem: Fix compile error in zmodem host tool 437dba33 system: zmodem: Fix debug assert condition 5c936ce0 Various fixes (#6) 74ba8ff2 Merge pull request #5 from xiaoxiang781216/fix-void-cast
I have moved the STM32 serial calls into stm32_serial that will allow for enabling and disabling of single wire mode only.
To verify and illustrate how it is called I setup a test (tests hott_telemetry), which not only tests enabling/disabling single wire mode but tests HoTT telemetry in general. Just having a test for single wire didn't seem to justify a test class and it will be useful once HoTT is added into the codebase.