Commit Graph

25 Commits

Author SHA1 Message Date
haslinghuis bde56cf876 Document updated after comments from mikeller! 2020-08-19 18:53:54 +02:00
haslinghuis 72838f3188 Add serial port identifier and serial port function table 2020-07-06 04:23:36 +02:00
azolyoung b7270917c8 add left side choosable for passthrough 2019-06-12 09:51:00 +08:00
SteveCEvans 5558174d33 Support programming of Arduino devices in serial passthrough mode (#5129)
* Support DTR in serial passthrough mode to enable programming of Arduino
based devices such as MinimOSD.

Use 'serialpassthrough 5 57600 rxtx 56' and then use Ardino to program MinimOSD
Use 'serialpassthrough 5 115200' and then use MWOSD configurator to setup

* Fix comment for CDC_SetCtrlLineStateCb routine

* Handle F7 CDC interface

* Use strToPin() to allow easy port/pin specification

* Fix use of CDC_SetCtrlLineStateCb for all processor types

* Only set baud when specified

* Fix unit tests for cli

* Only register callback if needed

* Fix white space

* Provide implementation of IOConfigGPIO in SITL

* Update serialpassthrough help text

* DTR handling through serial drivers

* Fix F3, F7 and SITL builds

* If serialpassthrough command specifies baud rate of 0, set baud rate over USB. MWOSD configurator can now access config and reflash MinimOSD without rebooting and changing baud rate.

* Fix F3 build

* Fix failing unit tests

* Use resources to declare DTR pin assignment

* Don't assert DTR during normal operation as MW_OSD doesn't like it

* MW_OSD must be built with MAX_SOFTRESET defined in order to support DTR resets

* Minimise changes after dropping DTR pin param from serialpassthrough cmd

* Remove DTR pin param from serialpassthrough cmd

* Treat ioDtrTag as boolean in conditional statements

* Tidy buffer check

* Check buffer size in CDC_Itf_Control

* Fix unit test

* Add documentation for DTR

* Add note on MAX_SOFTRESET to documentation

* Remove superfluous function definitions

* Fix tabs

* Fix tabs

* Removed superfluous entried from vtable

* Backout whitespace changes unrelated to this PR

* Pass true/false to IOWrite()

* Fix line coding packing

* Add LINE_CODING structure defintion

* Revise serial documentation

* Prevent tx buffer overflow in serialPassthrough()

* Revert change unrelated to PR

* Review feedback from ledvinap

* Fix unit test

* Use PINIO to drive DTR

* Fix unit test

* Remove change unrelated to PR

* Fix SITL build

* Use shifted bits for mask definition

* Fix serialpassthrough documentation

* Only compile PINIO functionality if USE_PINIO defined

* IOConfigGPIO not needed

* Move cbCtrlLine callback to cli.c

* serialPassthrough params changed

* Check packed structure size

* Fix unit test

* Tidy up baud rate handling
2018-03-21 23:17:31 +13:00
Hydra eb800966d9 CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
borisbstyle c8e7850c3d Betaflight Cleanup targets / docs 2016-02-10 23:09:22 +01:00
Dominic Clifton ca22fb0ee3 Replace CLI serial port configuration code with a new `serial` command.
This is done to make it clearer in configuration dumps which ports are
enabled and configured.

There is a nice code size reduction due to less strings being needed.

Serial documentation updated.

Closes #966.
2015-05-31 11:50:58 +01:00
Dominic Clifton c37454ca3a Add note explaining that the softserial feature must be enabled to allow
configuration of softserial ports.  Fix some typos.
2015-05-28 14:06:37 +01:00
Dominic Clifton 8a9d2e3708 Updating port configuration documentation, closes #692. 2015-03-31 13:41:00 +01:00
Nicholas Sherlock 644db9b8fa Add baud rate identifier docs for new 230400 & 250000 speeds 2015-03-07 02:01:44 +13:00
Dominic Clifton 8e29afd167 Document baud rate identifiers. 2015-03-05 11:14:10 +00:00
Dominic Clifton 94e499f9aa Serial port documentation update. 2015-03-03 22:52:56 +00:00
Dominic Clifton fcbda7ec63 Merge pull request #227 from sherlockflight/master
Add blackbox flight data recorder feature
2015-01-06 21:56:49 +00:00
Pim van Pelt ca141d7975 s/[Ss]oft[Ss]erial/SoftSerial/ where appropriate 2015-01-04 01:05:03 +01:00
Pim van Pelt bb5d22a8d2 Various formatting and typographic fixes 2015-01-04 00:53:24 +01:00
Dominic Clifton c177aec70f Updating documentation regarding serial port constraints. 2015-01-03 21:54:07 +00:00
Nicholas Sherlock 80082660ce Add blackbox scenarios to serial documentation 2014-12-26 11:38:48 +13:00
Dominic Clifton 7c4830d411 Adding example of MSP on two ports to docs. 2014-12-03 23:33:58 +00:00
Fredrik Steen 91d82c1b32 Updated links 2014-11-14 13:48:39 +01:00
Dominic Clifton 72cacdae74 Updating Serial.md based on feedback from hwurzburg
See
http://www.multiwii.com/forum/posting.php?mode=quote&f=23&p=58745#pr58745
2014-11-13 20:32:10 +00:00
Dominic Clifton 6529d274b8 Adding details of the new serial port scenario for SmartPort telemetry. 2014-11-12 01:00:46 +00:00
Dominic Clifton 70c580b211 Updating serial documentation to cover new defaults, updated examples. 2014-11-11 23:41:21 +00:00
Dominic Clifton 12b00c237f Updating example serial configuration scenarios. 2014-10-07 20:36:12 +01:00
Gareth Wilkins 775d312a32 Minor documentation amends
Post proofing amends
2014-09-26 21:59:10 +01:00
Dominic Clifton 366c7d2e2d Updating documentation. 2014-09-26 16:29:48 +01:00