{"action":"created","issue":{"url":"https://api.github.com/repos/d-ronin/dRonin/issues/672","repository_url":"https://api.github.com/repos/d-ronin/dRonin","labels_url":"https://api.github.com/repos/d-ronin/dRonin/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/d-ronin/dRonin/issues/672/comments","events_url":"https://api.github.com/repos/d-ronin/dRonin/issues/672/events","html_url":"https://github.com/d-ronin/dRonin/pull/672","id":134417329,"number":672,"title":"STM32F4 USART: Add single wire mode","user":{"login":"mluessi","id":647005,"avatar_url":"https://avatars.githubusercontent.com/u/647005?v=3","gravatar_id":"","url":"https://api.github.com/users/mluessi","html_url":"https://github.com/mluessi","followers_url":"https://api.github.com/users/mluessi/followers","following_url":"https://api.github.com/users/mluessi/following{/other_user}","gists_url":"https://api.github.com/users/mluessi/gists{/gist_id}","starred_url":"https://api.github.com/users/mluessi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mluessi/subscriptions","organizations_url":"https://api.github.com/users/mluessi/orgs","repos_url":"https://api.github.com/users/mluessi/repos","events_url":"https://api.github.com/users/mluessi/events{/privacy}","received_events_url":"https://api.github.com/users/mluessi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/d-ronin/dRonin/labels/flight","name":"flight","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-17T22:19:14Z","updated_at":"2016-02-19T16:16:07Z","closed_at":"2016-02-18T13:45:59Z","pull_request":{"url":"https://api.github.com/repos/d-ronin/dRonin/pulls/672","html_url":"https://github.com/d-ronin/dRonin/pull/672","diff_url":"https://github.com/d-ronin/dRonin/pull/672.diff","patch_url":"https://github.com/d-ronin/dRonin/pull/672.patch"},"body":"Support single wire mode for UART on STM32F4. This is e.g. useful for S.Port telemetry, but it requires an external bi-directional inverter as the F4 doesn't have built-in inverters.\r\n\r\nStatus: bench tested to be working.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/d-ronin/dronin/672)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/d-ronin/dRonin/issues/comments/186283006","html_url":"https://github.com/d-ronin/dRonin/pull/672#issuecomment-186283006","issue_url":"https://api.github.com/repos/d-ronin/dRonin/issues/672","id":186283006,"user":{"login":"ekaszubski","id":666500,"avatar_url":"https://avatars.githubusercontent.com/u/666500?v=3","gravatar_id":"","url":"https://api.github.com/users/ekaszubski","html_url":"https://github.com/ekaszubski","followers_url":"https://api.github.com/users/ekaszubski/followers","following_url":"https://api.github.com/users/ekaszubski/following{/other_user}","gists_url":"https://api.github.com/users/ekaszubski/gists{/gist_id}","starred_url":"https://api.github.com/users/ekaszubski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekaszubski/subscriptions","organizations_url":"https://api.github.com/users/ekaszubski/orgs","repos_url":"https://api.github.com/users/ekaszubski/repos","events_url":"https://api.github.com/users/ekaszubski/events{/privacy}","received_events_url":"https://api.github.com/users/ekaszubski/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T16:16:07Z","updated_at":"2016-02-19T16:16:07Z","body":"@mluessi @tracernz So this doesn't look like a user-configurable option based on what is being said here. I currently use a homemade (proto-board) inverter for FrSky S.Port telemetry that assumes separate tx and rx lines on the flexi port, but if I (or upstream) modified the usart config for S.Port on sparky2 to enable single_wire, it looks like I'd be forced to either change my inverter hardware or maintain a branch of the code that disables single_wire mode. Is this correct? If so, I think we should consider adding an option to set single_wire mode in GCS (similar to the way we allow DSM mode to be configured in GCS).\r\n\r\nIn the end, I think using single_wire would be the better long-term solution, but it would be unfortunate to force that mode onto people who are currently using two-wire mode on the FC side."}}