1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00
Commit graph

54 commits

Author SHA1 Message Date
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
Nicholas Sherlock
159f57f583 Add new serial port options field (inversion, stop bits, etc) 2015-03-19 12:56:11 +13:00
Petr Ledvina
3b20b74c00 Fixed original softserial code
Bit end timer must by shifted by half-bit period to startbit edge, so that next edges are in middle of bit interval. This behavior was masked with old timer code, but noise immunity was probably very low.
2014-11-11 12:38:57 +01:00
Petr Ledvina
aa7f5c4a1e New timer implementation
This is first part of new softserial code. Main timer code is changed, changes to rest of code are kept to minimum.

macros for BASEPRI based synchronization are added to project (atomic.h)

TIMER_PERIOD fixed in pwm_rx.c
2014-11-07 15:38:26 +01:00
Petr Ledvina
e686b4504e Centralized NVIC priorities
- NVIC priorities are moved to separate file, all values are replaced wit symbolic names. Priorities should be the same.
- tiny change in DMA initialization
2014-10-23 16:48:35 +02:00
Dominic Clifton
fd32ad6fcb Use correct buffer size variable when checking for softserial waiting
bytes.  Fixes #127.
2014-10-21 13:41:51 +01:00
Dominic Clifton
2d8f65448d Cleanup Softserial/LedStrip timer clash checking. Move definitions of
led strip timer and softserial pwm ports/timers into target specific
files.
2014-10-20 21:44:55 +01:00
Dominic Clifton
91c7407806 Cleanup CC3D softserial - it only has enough pins/timers for one port.
PR #124 incorrectly re-used the same timer hardware for the second port
which was bad.
2014-10-20 19:34:10 +01:00
Pierre-A
20c4dae7c2 SoftSerial port for CC3D 2014-10-19 11:20:55 +02:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
3d382ea4c7 EUSTM32F103RC - First cut of support for this High-Density STM32F103
series development board.

These boards can be picked up for less than $11, coupled with a 10DOF
sensor board they make a great development platform or cheap expandable
FC.

Pretty much all pins are available to be used, unlike on the less
capable and more expensive OLIMEXINO.
2014-09-03 01:38:27 +01:00
Dominic Clifton
dc0f461c73 Update serial port handling for boards with only 2 ports. 2014-08-07 23:32:14 +01:00
Dominic Clifton
9a9ff9b1ad Cleanup various compiler warnings that were appearing since the
additional compiler flags were added.
2014-08-01 20:02:10 +01:00
Dominic Clifton
a5ec1355d4 CC3D - Support PPM input on IN_S1.
This required timer overflow events to be used in the calculation of PPM
channel data.

CC3D tested, other targets may be unstable as a result. Needs further
testing.
2014-07-22 21:29:00 +01:00