atbetaflight/docs
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
..
API CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
CLI corrected .md syntax Documentation for <gyro_offset_yaw> 2018-01-26 10:05:38 +01:00
Screenshots CF/BF - Add EasyRaceLapTimer transponder provider 2018-01-08 12:19:35 +13:00
Upgrading Fixed puntuation in documentation. Also, testing [ci skip] (#5474) 2018-03-20 13:17:15 +13:00
Wiring Moved board docs into their own folder. Also fixed file permissions. 2018-01-18 17:55:38 +13:00
assets Moved board docs into their own folder. Also fixed file permissions. 2018-01-18 17:55:38 +13:00
boards New target CrazyBeeF3FR (#5420) 2018-03-15 02:32:14 +13:00
development Update Building in Ubuntu.md (#5408) 2018-03-15 02:14:33 +13:00
Battery.md Moved board docs into their own folder. Also fixed file permissions. 2018-01-18 17:55:38 +13:00
Blackbox.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Boards.md Moved board docs into their own folder. Also fixed file permissions. 2018-01-18 17:55:38 +13:00
Buzzer.md Fix markdown links to filenames with spaces 2018-01-08 12:19:35 +13:00
Cli.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Configuration.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Controls.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Customized Version.md Update doc: common.h file is now common_fc_pre.h 2018-01-08 12:19:35 +13:00
Display.md Moved board docs into their own folder. Also fixed file permissions. 2018-01-18 17:55:38 +13:00
Failsafe.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Getting Started.md Fix markdown links to filenames with spaces 2018-01-08 12:19:35 +13:00
Gps.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Gtune.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Inflight Adjustments.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Installation.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Introduction.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
LedStrip.md Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 … (#5255) 2018-03-06 09:39:14 +13:00
Migrating from baseflight.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Mixer.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Modes.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Oneshot.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
PID tuning.md Formatting 2018-01-08 12:20:23 +13:00
Profiles.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Rssi.md If RSSI Channel is set to Disabled when using S.Bus then generate RSS… (#5090) 2018-03-21 13:36:23 +13:00
Rx.md Documentation for combine ibus serial rx and telemetry on same UART 2018-01-08 12:19:35 +13:00
Safety.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Serial.md Support programming of Arduino devices in serial passthrough mode (#5129) 2018-03-21 23:17:31 +13:00
Sonar.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Spektrum bind.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
Telemetry.md Documentation for combine ibus serial rx and telemetry on same UART 2018-01-08 12:19:35 +13:00
Transponder.md CF/BF - Add EasyRaceLapTimer transponder provider 2018-01-08 12:19:35 +13:00
USB Flashing.md CF - restore docs folder from master_v1.x 2018-01-08 12:19:35 +13:00
VTX.md CF/BF - Port VTX button from CF v1.x. 2018-01-08 12:19:35 +13:00
override.css Moved board docs into their own folder. Also fixed file permissions. 2018-01-18 17:55:38 +13:00