1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

67 commits

Author SHA1 Message Date
mikeller
6a0c5836de Added 'timer show' command to CLI. 2019-08-06 23:56:54 +12:00
jflyper
76d6a14c55 [H7] Enable software serial 2019-05-06 14:56:03 +09:00
blckmn
aad6efdf03 Timer clean up in preparation for configurable timers 2018-05-06 06:55:17 +10:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10: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
Curtis Bangert
5e950e8c5a Updated soft serial implementation to better handle VTX half-duplex transport 2018-02-06 12:54:52 -05:00
Michael Keller
f0cf65467b
Merge pull request #4675 from jflyper/bfdev-fix-softserial-disappearing-start-bit
[SOFTSERIAL] Fix disappearing start bit in SERIAL_BIDIR case.
2017-11-30 17:56:40 +13:00
jflyper
fe7cfbdc30 Fix disappearing start bit in SERIAL_BIDIR case. 2017-11-28 01:26:40 +09:00
Martin Budden
8cb7abd15f Added data parameter to UART RX callback 2017-11-25 10:11:37 +00:00
jflyper
e1e338c15d Explicitly call IOConfigGPIOAF for F3 and F4. 2017-09-01 18:14:45 +09:00
jflyper
b5ddae4672 For readability 2017-08-31 15:02:21 +09:00
jflyper
5715bda906 Tidy 2017-08-31 14:48:00 +09:00
jflyper
652d9adba8 Avoid using N-Channel for RX function 2017-08-31 03:44:49 +09:00
Martin Budden
8dd4a584c1 Fixed whitespace 2017-08-17 08:32:37 +01:00
Martin Budden
944fe0761c Tidied UART enum definitions 2017-07-29 13:30:37 +01:00
blckmn
b9ebf8f4fd PWM output calculations dynamic based on clock speed 2017-06-28 21:59:42 +10:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
jflyper
6854a773e2 Remove debug statements 2017-05-16 15:58:33 +09:00
jflyper
2b1308a556 Merge remote-tracking branch 'betaflight/master' into bfdev-fix-softserial-f7 2017-05-07 12:12:10 +09:00
jflyper
d4a2c23fe3 Fix semantically incorrect macro name
Also fixes semantically incorrect resource index calculation in
serial_softserial.c.
2017-05-04 21:33:35 +09:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Martin Budden
1964362dce Removal of USE_PARAMETER_GROUPS 1 2017-03-09 22:03:59 +00:00
jflyper
8750b1400b Mod softserial for F7
- Per #2478 + re-enable
- Need to re-enable CC on F7?
2017-03-01 10:47:09 +09:00
jflyper
3188d7e2ad Added HAL driver support 2017-02-11 12:20:08 +09:00
jflyper
d7f79bc3ca Complete KISSCC and fix simplex TX case 2017-02-10 22:07:29 +09:00
jflyper
011dd6ff20 INVERTED (S.PORT) working 2017-02-09 23:32:59 +01:00
jflyper
9754e0d67b Some touch-ups per @ledvinap's comment
#if 0 / #endif will be removed when some regression test is done.
2017-02-09 23:32:49 +01:00
jflyper
97b5dbc386 Softserial with monotimer and bidir 2017-02-09 23:32:37 +01:00
blckmn
58105c25ac Simplified Owner management 2016-11-10 18:56:13 +11:00
Martin Budden
53981adbb7 Renamed serial port callback 2016-10-12 08:39:06 +01:00
Martin Budden
661aa7469d Made serial const correct 2016-10-03 23:00:16 +01:00
blckmn
9c303d6669 VCP improvements to remove need for delay in serial_cli for F4 targets. 2016-08-13 11:23:35 +10:00
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden
1c997abaaf Moved function declarations out of main. Tidied drivers. 2016-08-02 15:11:35 +01:00
Martin Budden
3d8ee50934 Removed unnecesary #includes from drivers 2016-07-11 18:45:35 +01:00
Martin Budden
ea283ab98c Converted tabs to spaces 2016-07-09 14:39:39 +01:00
blckmn
67d448d8ea Improved Resource command output. 2016-07-09 17:03:16 +10:00
Martin Budden
97fe5afd6c Converted tabs to spaces. 2016-06-27 19:26:02 +01:00
blckmn
deaeb23c84 fixed incompatible pointer types in softserial 2016-06-27 06:42:21 +10:00
blckmn
55a1876319 Renamed additional io to tag, and fixed issue identified by @martinbudden 2016-06-23 18:13:38 +10:00
blckmn
8b1cc05e1d Updated timerHardware_t to drop pinsource, and use new IO tags. 2016-06-15 05:27:59 +10:00
Pierre-A
702ef4e798 initialise softSerial Rx to PullUp 2016-02-23 23:17:02 +01:00
Michael Hope
96306ff9ab serial: add writeBuf() and implement for USB.
This lets USB send up to 32 bytes in a frame instead of 32 one byte
frames.  Add a fallback for drivers that don't implement writeBuf().

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:24 +01:00
borisbstyle
4b3ba927e9 Merge branch 'master' into betaflight
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/drivers/serial_usb_vcp.c
	src/main/flight/imu.c
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-10-12 23:53:43 +02:00
Nicholas Sherlock
6e504ca52a Ability to see how many Tx bytes are free in serial port buffer 2015-10-01 16:48:56 +13:00
Konstantin Sharlaimov (DigitalEntity)
45a4f11f92 Added #define for imu debug output (+16 squashed commit)
Squashed local commits:

from       : e4265d4a13f63f82d5cf55eea2c091622f96660b
up to (inc): 72416dc74745fa8bae1aded79aa4b9ed0e389076
2015-09-19 14:50:53 +02:00
Dominic Clifton
11493cd01a STM32F3 - Fix softserial RX. 2015-06-26 21:02:07 +01:00
Dominic Clifton
b0b1eaf9c7 Add first unit test for some code in serial.c. Fix compiler warnings in
other tests.
2015-04-01 14:12:24 +01:00
Nicholas Sherlock
344e8fbf04 Make serial port option checks consistent 2015-03-19 12:56:11 +13:00